This change implements parse-only acceptance of the optional
requires-clause in a template-declaration. Diagnostic testing is added
for cases where the grammar is ambiguous with the expectation that the
longest token sequence which matches the syntax of a
constraint-expression is consumed without backtracking.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The code change looks fine. Please add some testcases covering valid constructs too (one of each kind of template, perhaps?).
Comment Actions
Add tests (with various kinds of template) for valid cases of the requires-clause of a template-declaration.