http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49432
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-06-16 21:55:36 UTC --- The test passes with the following patch: --- ../_clean/gcc/testsuite/obj-c++.dg/invalid-type-1.mm 2010-11-19 18:12:20.000000000 +0100 +++ gcc/testsuite/obj-c++.dg/invalid-type-1.mm 2011-06-16 23:49:20.000000000 +0200 @@ -18,8 +18,8 @@ id <MyProtocol> object; /* This is fine. AClass <MyProtocol> *object1; /* This is fine. */ -Integer <MyProtocol> *object2; /* { dg-error ".Integer. is not a template" } */ +Integer <MyProtocol> *object2; /* { dg-error ".Integer .aka int.. is not a template" } */ /* { dg-error ".MyProtocol. was not declared in this scope" "" { target *-*-* } 21 } */ -Integer <NonExistingProtocol> *object3; /* { dg-error ".Integer. is not a template" } */ +Integer <NonExistingProtocol> *object3; /* { dg-error ".Integer .aka int.. is not a template" } */ /* { dg-error ".NonExistingProtocol. was not declared in this scope" "" { target *-*-* } 24 } */