summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/PR9459.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR10359: Template declarations which define classes are not permitted to ↵Richard Smith2011-07-141-1/+1
| | | | | | | | | | | | also contain declarators. Previously we would accept code like this: template<typename T> struct S { } f() { return 0; } This case now produces a missing ';' diagnostic, since that seems like a much more likely error than an attempt to declare a function or variable in addition to the class template. Treat this llvm-svn: 135195
* Extend Sema::ClassifyName() to support C++, ironing out a few issuesDouglas Gregor2011-04-271-4/+2
| | | | | | | | | in the classification of template names and using declarations. We now properly typo-correct the leading identifiers in statements to types, templates, values, etc. As an added bonus, this reduces the number of lookups required for disambiguation. llvm-svn: 130288
* Don't enter a qualified scope for an invalid decl.Argyrios Kyrtzidis2011-04-221-0/+9
Fixes assertion later on. rdar://9122937 & http://llvm.org/PR9459 llvm-svn: 130006
OpenPOWER on IntegriCloud