summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2015-01-18 19:05:48 +0000
committerSerge Pavlov <sepavloff@gmail.com>2015-01-18 19:05:48 +0000
commitf80df57d3984ef5bacd6b347bfadf606c9502f13 (patch)
tree0ed6cbdc9e4516a90610e4dc5ad6ca2191123c56 /clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp
parent01dce6c931d1c201f852db224e98272bb001e102 (diff)
downloadbcm5719-llvm-f80df57d3984ef5bacd6b347bfadf606c9502f13.tar.gz
bcm5719-llvm-f80df57d3984ef5bacd6b347bfadf606c9502f13.zip
Update error message text.
Previously if an enumeration was used in a nested name specifier in pre-C++11 language dialect, error message was 'XXX is not a class, namespace, or scoped enumeration'. This patch removes the word 'scoped' as in C++11 any enumeration may be used in this context. llvm-svn: 226410
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp')
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp
index 5b3a004056b..b5cd98828cc 100644
--- a/clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp
+++ b/clang/test/CXX/expr/expr.prim/expr.prim.general/p8-0x.cpp
@@ -47,8 +47,8 @@ namespace PR10127 {
decltype()::middle::fail g; // expected-error{{expected expression}}
decltype(int()) h;
- decltype(int())::PR10127::outer i; // expected-error{{'decltype(int())' (aka 'int') is not a class, namespace, or scoped enumeration}}
- decltype(int())::global j; // expected-error{{'decltype(int())' (aka 'int') is not a class, namespace, or scoped enumeration}}
+ decltype(int())::PR10127::outer i; // expected-error{{'decltype(int())' (aka 'int') is not a class, namespace, or enumeration}}
+ decltype(int())::global j; // expected-error{{'decltype(int())' (aka 'int') is not a class, namespace, or enumeration}}
outer::middle k = decltype(outer())::middle();
outer::middle::inner l = decltype(outer())::middle::inner();
OpenPOWER on IntegriCloud