Commit Graph

3 Commits

Author SHA1 Message Date
David Majnemer 57dec60f90 Parse: Don't crash when namespace is in GNU statement expr
Parser::ParseNamespace can get a little confused when it found itself
inside a compound statement inside of a non-static data member
initializer.

Try to determine that the statement expression's scope makes sense
before trying to parse it's contents.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225514 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-09 09:38:14 +00:00
Nico Weber e1bb329744 Fix crash on missing namespace name in namespace alias definition -- PR14085.
Patch from Brian Brooks <brooks.brian@gmail.com>!



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166893 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-27 23:44:27 +00:00
Douglas Gregor 95f1b15ce1 Namespaces can only be defined at global or namespace scope. Fixes PR6596.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103767 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-14 05:08:22 +00:00