summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx11-templates.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reject varargs '...' in function prototype if there are more parameters afterRichard Smith2014-08-111-0/+37
| | | | | | | | | | | it. Diagnose with recovery if it appears after a function parameter that was obviously supposed to be a parameter pack. Otherwise, warn if it immediately follows a function parameter pack, because the user most likely didn't intend to write a parameter pack followed by a C-style varargs ellipsis. This warning can be syntactically disabled by using ", ..." instead of "...". llvm-svn: 215408
* A static_assert declaration cannot be a template; adding the diagnostic for ↵Aaron Ballman2014-08-041-0/+9
this instead of silently accepting and producing possibly-unexpected behavior. llvm-svn: 214770
OpenPOWER on IntegriCloud