summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-01 21:43:41 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-01 21:43:41 +0000
commit1d4b2e16a2bc20356e1c79e3115217a80c6104af (patch)
tree7b5f60f6a4066acb79073686533b556c1f053e1d /clang/lib/Parse/ParseDecl.cpp
parentd2c0abad2b89bc240002cad1da3732543082f9fa (diff)
downloadbcm5719-llvm-1d4b2e16a2bc20356e1c79e3115217a80c6104af.tar.gz
bcm5719-llvm-1d4b2e16a2bc20356e1c79e3115217a80c6104af.zip
PR15633: Note that we are EnteringContext when parsing the nested name
specifier for an enumeration. Also fix a crash-on-invalid if a non-dependent name specifier is used to declare an enum template. llvm-svn: 178502
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 03bffde06ea..87b8a2d906c 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -3262,7 +3262,7 @@ void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS,
ColonProtectionRAIIObject X(*this, AllowFixedUnderlyingType);
if (ParseOptionalCXXScopeSpecifier(SS, ParsedType(),
- /*EnteringContext=*/false))
+ /*EnteringContext=*/true))
return;
if (SS.isSet() && Tok.isNot(tok::identifier)) {
OpenPOWER on IntegriCloud