diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2014-05-19 17:51:31 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2014-05-19 17:51:31 +0000 |
commit | 7fb80849cb4af6c1f90c2464a38f2b20a8e3d0fb (patch) | |
tree | a9e4cfc018d804127514c896e8b3b59d6f2247d1 /gcc/testsuite/g++.old-deja | |
parent | 883755a164ac5e56b049e8bf3b68d12eab3962a9 (diff) | |
download | gcc-7fb80849cb4af6c1f90c2464a38f2b20a8e3d0fb.tar.gz |
typeck2.c (cxx_incomplete_type_diagnostic): Use inform.
/cp
2014-05-19 Paolo Carlini <paolo.carlini@oracle.com>
* typeck2.c (cxx_incomplete_type_diagnostic): Use inform.
* parser.c (cp_parser_enum_specifier): Likewise.
/testsuite
2014-05-19 Paolo Carlini <paolo.carlini@oracle.com>
* c-c++-common/gomp/simd4.c: Adjust for inform.
* g++.dg/cpp0x/decltype-call1.C: Likewise.
* g++.dg/cpp0x/forw_enum6.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-ice7.C: Likewise.
* g++.dg/cpp0x/noexcept15.C: Likewise.
* g++.dg/cpp0x/variadic-ex2.C: Likewise.
* g++.dg/eh/spec6.C: Likewise.
* g++.dg/expr/cast1.C: Likewise.
* g++.dg/expr/dtor1.C: Likewise.
* g++.dg/ext/is_base_of_diagnostic.C: Likewise.
* g++.dg/ext/unary_trait_incomplete.C: Likewise.
* g++.dg/gomp/pr49223-2.C: Likewise.
* g++.dg/gomp/udr-4.C: Likewise.
* g++.dg/init/delete1.C: Likewise.
* g++.dg/other/crash-2.C: Likewise.
* g++.dg/parse/crash24.C: Likewise.
* g++.dg/parse/crash25.C: Likewise.
* g++.dg/parse/crash31.C: Likewise.
* g++.dg/parse/crash49.C: Likewise.
* g++.dg/parse/crash50.C: Likewise.
* g++.dg/parse/crash54.C: Likewise.
* g++.dg/parse/dtor7.C: Likewise.
* g++.dg/parse/error40.C: Likewise.
* g++.dg/parse/fused-params1.C: Likewise.
* g++.dg/parse/new1.C: Likewise.
* g++.dg/template/crash35.C: Likewise.
* g++.dg/template/crash59.C: Likewise.
* g++.dg/template/crash77.C: Likewise.
* g++.dg/template/error51.C: Likewise.
* g++.dg/template/incomplete1.C: Likewise.
* g++.dg/template/incomplete3.C: Likewise.
* g++.dg/template/incomplete4.C: Likewise.
* g++.dg/template/incomplete5.C: Likewise.
* g++.dg/template/inherit8.C: Likewise.
* g++.dg/template/instantiate1.C: Likewise.
* g++.dg/template/instantiate3.C: Likewis: Likewise.
* g++.dg/template/offsetof2.C: Likewise.
* g++.dg/tm/pr51928.C: Likewise.
* g++.dg/warn/Wdelete-incomplete-1.C: Likewise.
* g++.dg/warn/incomplete1.C: Likewise.
* g++.dg/warn/incomplete2.C: Likewise.
* g++.old-deja/g++.brendan/friend4.C: Likewise.
* g++.old-deja/g++.bugs/900121_01.C: Likewise.
* g++.old-deja/g++.bugs/900214_01.C: Likewise.
* g++.old-deja/g++.eh/catch1.C: Likewise.
* g++.old-deja/g++.eh/spec6.C: Likewise.
* g++.old-deja/g++.mike/p7868.C: Likewise.
* g++.old-deja/g++.other/crash38.C: Likewise.
* g++.old-deja/g++.other/enum2.C: Likewise.
* g++.old-deja/g++.other/incomplete.C: Likewise.
* g++.old-deja/g++.other/vaarg3.C: Likewise.
* g++.old-deja/g++.pt/crash9.C: Likewise.
* g++.old-deja/g++.pt/niklas01a.C: Likewise.
* g++.old-deja/g++.pt/typename8.C: Likewise.
* g++.old-deja/g++.robertl/ice990323-1.C: Likewise.
From-SVN: r210623
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/friend4.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.eh/catch1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.eh/spec6.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p7868.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash38.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/enum2.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/incomplete.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/vaarg3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash9.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/typename8.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C | 2 |
14 files changed, 15 insertions, 15 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C b/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C index 4d436e5c9c6..dc55280751d 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C @@ -2,5 +2,5 @@ // GROUPS passed friends // do_friend should complain that foo was declared as a friend of // A before A was defined -struct A; // { dg-error "forward" } +struct A; // { dg-message "forward" } struct B { friend A::foo (); };// { dg-error "" } .* diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C index 32591635824..da619b88337 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C @@ -7,7 +7,7 @@ // keywords: abort, incomplete types, reference types, formal parameters -struct s0; // { dg-error "" } forward declaration +struct s0; // { dg-message "" } forward declaration void function (struct s0 &arg1, struct s0 &arg2) { diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C index 88cafbfc181..4b161bf89c0 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C @@ -8,7 +8,7 @@ // keywords: friends, incomplete types, function members -struct A; // { dg-error "" } forward declaration +struct A; // { dg-message "" } forward declaration struct B { friend void A::foo(); // { dg-error "" } type A is incomplete diff --git a/gcc/testsuite/g++.old-deja/g++.eh/catch1.C b/gcc/testsuite/g++.old-deja/g++.eh/catch1.C index 7aa70ac97b3..67779d945ea 100644 --- a/gcc/testsuite/g++.old-deja/g++.eh/catch1.C +++ b/gcc/testsuite/g++.old-deja/g++.eh/catch1.C @@ -5,7 +5,7 @@ // We cannot catch an incomplete type, or ptr to one -struct A; // { dg-error "" } forward decl +struct A; // { dg-message "" } forward decl void fn() { diff --git a/gcc/testsuite/g++.old-deja/g++.eh/spec6.C b/gcc/testsuite/g++.old-deja/g++.eh/spec6.C index 7780c4a9daf..85e9b4e7c4e 100644 --- a/gcc/testsuite/g++.old-deja/g++.eh/spec6.C +++ b/gcc/testsuite/g++.old-deja/g++.eh/spec6.C @@ -7,7 +7,7 @@ // [except.spec] 1, a type in an exception specifier shall not be incomplete, // or pointer or ref to incomplete -struct X; // { dg-error "" } forward declaration.* +struct X; // { dg-message "" } forward declaration.* void fn1() throw(X); // { dg-error "" } invalid use of undefined type void fn2() throw(X *); // { dg-error "" } invalid use of undefined type void fn3() throw(X &); // { dg-error "" } invalid use of undefined tyoe diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C b/gcc/testsuite/g++.old-deja/g++.mike/p7868.C index 48bdf8b2500..8a94b3ecb1a 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p7868.C @@ -4,13 +4,13 @@ struct DIAGTYP { }; struct DIAGTYP1 { - struct DIAGTYP; // { dg-error "" } forward declaration + struct DIAGTYP; // { dg-message "" } forward declaration void bar() { new struct DIAGTYP; } // { dg-error "" } undefined void foo() { new struct DIAGTYP1; } }; int main () { - struct DIAGTYP; // { dg-error "" } forward declaration + struct DIAGTYP; // { dg-message "" } forward declaration struct DIAGTYP *lerror_desc; lerror_desc= new struct DIAGTYP; // { dg-error "" } undefined } diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash38.C b/gcc/testsuite/g++.old-deja/g++.other/crash38.C index d07115e51ca..87e55556128 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/crash38.C +++ b/gcc/testsuite/g++.old-deja/g++.other/crash38.C @@ -6,7 +6,7 @@ // Bug 611. We ICEd when calling a member function returning an incomplete // type by value. -struct X; // { dg-error "" } forward ref +struct X; // { dg-message "" } forward ref struct Y { diff --git a/gcc/testsuite/g++.old-deja/g++.other/enum2.C b/gcc/testsuite/g++.old-deja/g++.other/enum2.C index 40328bfc6b9..7fc269d9de0 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/enum2.C +++ b/gcc/testsuite/g++.old-deja/g++.other/enum2.C @@ -5,7 +5,7 @@ // We'd like the enum location to be its identifier. -enum thing // { dg-error "" } previous def +enum thing // { dg-message "" } previous def { val1 }; diff --git a/gcc/testsuite/g++.old-deja/g++.other/incomplete.C b/gcc/testsuite/g++.old-deja/g++.other/incomplete.C index a00ea1c7d2e..7f0bc9409e8 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/incomplete.C +++ b/gcc/testsuite/g++.old-deja/g++.other/incomplete.C @@ -4,7 +4,7 @@ // a void parm. We need to distinguish between a parmlist of (void), and // some ill-formed ones. -struct S; // { dg-error "" } forward ref +struct S; // { dg-message "" } forward ref void f(S); // ok void f(S s) {} // { dg-error "" } incomplete type diff --git a/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C b/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C index 3408a181188..134a89c97f6 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C +++ b/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C @@ -10,7 +10,7 @@ struct X {int m;}; struct Y { Y(const Y&); }; -struct Z; // { dg-error "forward decl" } +struct Z; // { dg-message "forward decl" } void fn1(va_list args) { int i = va_arg (args, int); diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash9.C b/gcc/testsuite/g++.old-deja/g++.pt/crash9.C index aecbd60d970..f54d6387c29 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/crash9.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash9.C @@ -3,7 +3,7 @@ template <class T> void f(T) {} // { dg-message "initializing" } -class C; // { dg-error "forward declaration" } +class C; // { dg-message "forward declaration" } void g(const C& c) { diff --git a/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C b/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C index 84765142fe3..3130d32cadb 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C @@ -1,7 +1,7 @@ // { dg-do assemble } // { dg-options "-fshow-column" } -struct A { // { dg-error "" } forward declaration +struct A { // { dg-message "" } forward declaration friend struct B : A { // { dg-error "invalid use of incomplete type 'struct A" "invalid" } int x; }; // { dg-error "class definition may not be declared a friend" "may not" { target *-*-* } { 5 } } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C index 4861cf301ed..581d6ce764d 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C @@ -17,7 +17,7 @@ public: } }; -class B : public A< B > // { dg-error "" } forward declaration +class B : public A< B > // { dg-message "" } forward declaration { public: typedef int myT; diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C b/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C index 41fed6ff502..cecf0aac50f 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C @@ -4,6 +4,6 @@ struct A {}; void f() { - struct A; // { dg-error "" } forward ref + struct A; // { dg-message "" } forward ref throw *(new A); // { dg-error "" } invalid use of undefined type } |