Sema: Don't crash when solitary :: token appears before { in struct def
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Dec 2014 05:17:46 +0000 (05:17 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Dec 2014 05:17:46 +0000 (05:17 +0000)
commitbe4c437f8a478e412c3da7df2c066f125f0a6ce6
tree7015aeaaf7ebad18dd425b086bffc908d8aa055d
parentc63fa612e46ec56776474580c72c7fb761e8777d
Sema: Don't crash when solitary :: token appears before { in struct def

hasDeclaratorForAnonDecl, getDeclaratorForAnonDecl and
getTypedefNameForAnonDecl are expected to handle the case where
NamedDeclOrQualifier holds the wrong type or nothing at all.

llvm-svn: 224912
clang/include/clang/AST/Decl.h
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/dcl.decl/dcl.meaning/p1.cpp