A program shall not declare an explicit instantiation (14.8.2), an explicit specialization (14.8.3), or a partial specialization of a concept definition.
Details
- Reviewers
faisalv aaron.ballman rsmith hubert.reinterpretcast - Commits
- rG8383912f8700: [Concepts] Implement subsection [dcl.spec.concept]p7 of the Concepts TS
rC265868: [Concepts] Implement subsection [dcl.spec.concept]p7 of the Concepts TS
rL265868: [Concepts] Implement subsection [dcl.spec.concept]p7 of the Concepts TS
Diff Detail
Event Timeline
lib/Sema/SemaDecl.cpp | ||
---|---|---|
7846 | Please let me know if there are thoughts about better error recovery here. I did this because we don't have the specifier information when checking an explicit specialization. So, we still diagnose for the explication specialization (one of the checks in this patch), when concept is specified, e.g.: Would it be okay to pass Declarator to Sema::CheckFunctionTemplateSpecialization? |
Can you put comments near the magic numbers to describe what they mean? e.g., 1 /*variable*/
Same comment applies elsewhere in the patch as well.