diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-09-13 20:16:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-09-13 20:16:20 +0000 |
commit | 43bc036e8ae37c5940857f3dcf50bc9441e7c4d0 (patch) | |
tree | 74c1faf59f34e2590b7780bba6726321ed90e951 /clang/test/SemaCXX/class.cpp | |
parent | 460fc46e0fd34893231ef1ab6d4d9f02f339e443 (diff) | |
download | bcm5719-llvm-43bc036e8ae37c5940857f3dcf50bc9441e7c4d0.tar.gz bcm5719-llvm-43bc036e8ae37c5940857f3dcf50bc9441e7c4d0.zip |
Promote the warning about extra qualification on a declaration from a
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
Diffstat (limited to 'clang/test/SemaCXX/class.cpp')
-rw-r--r-- | clang/test/SemaCXX/class.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/class.cpp b/clang/test/SemaCXX/class.cpp index 4dffc8d9ecb..972a79bb609 100644 --- a/clang/test/SemaCXX/class.cpp +++ b/clang/test/SemaCXX/class.cpp @@ -120,7 +120,7 @@ struct C4 { struct S { void f(); // expected-note 1 {{previous declaration}} - void S::f() {} // expected-warning {{extra qualification on member}} expected-error {{class member cannot be redeclared}} expected-note {{previous declaration}} expected-note {{previous definition}} + void S::f() {} // expected-error {{extra qualification on member}} expected-error {{class member cannot be redeclared}} expected-note {{previous declaration}} expected-note {{previous definition}} void f() {} // expected-error {{class member cannot be redeclared}} expected-error {{redefinition}} }; |