summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/dcl.decl/dcl.meaning/p1.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Parse: Recover more gracefully from extra :: tokens before a {David Majnemer2014-12-291-0/+2
| | | | | | | Instead of crashing, recover by eating the extra trailing scope qualifier. This means we will treat 'struct A:: {' as 'struct A {'. llvm-svn: 224966
* Parse: Ignore '::' in 'struct :: {'David Majnemer2014-12-291-1/+0
| | | | | | | Let's pretend that we didn't see the '::' instead of go on believing that we've got some anonymous, but globally qualified, struct. llvm-svn: 224945
* Sema: Don't crash when solitary :: token appears before { in struct defDavid Majnemer2014-12-291-0/+3
| | | | | | | | hasDeclaratorForAnonDecl, getDeclaratorForAnonDecl and getTypedefNameForAnonDecl are expected to handle the case where NamedDeclOrQualifier holds the wrong type or nothing at all. llvm-svn: 224912
* Implement DR482: namespace members can be redeclared with a qualified nameRichard Smith2013-12-051-5/+13
| | | | | | | | | | within their namespace, and such a redeclaration isn't required to be a definition any more. Update DR status page to say Clang 3.4 instead of SVN and add new Clang 3.5 category (but keep Clang 3.4 yellow for now). llvm-svn: 196481
* Promote the warning about extra qualification on a declaration from aDouglas Gregor2012-09-131-7/+7
| | | | | | | | warning to an error. C++ bans it, and both GCC and EDG diagnose it as an error. Microsoft allows it, so we still warn in Microsoft mode. Fixes <rdar://problem/11135644>. llvm-svn: 163831
* Unify and fix our checking of C++ [dcl.meaning]p1's requirementsDouglas Gregor2012-03-281-0/+15
| | | | | | | | | concerning qualified declarator-ids. We now diagnose extraneous qualification at namespace scope (which we had previously missed) and diagnose these qualification errors for all kinds of declarations; it was rather uneven before. Fixes <rdar://problem/11135644>. llvm-svn: 153577
* Diagnose tag and class template declarations with qualifiedDouglas Gregor2012-03-171-0/+22
declarator-ids that occur at class scope. Fixes PR8019. llvm-svn: 153002
OpenPOWER on IntegriCloud