This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR c++/51145 - Alias template in elaborated-type-specifier


On 11/21/2011 11:41 AM, Dodji Seketeli wrote:
-template class Ptr<int>;//{ dg-error "explicit instantiation|non-class templ|does not decl|anything" }
+template class Ptr<int>;//{ dg-error "alias templ|specialization|Ptr<int>|after|class" }

You seem to be using | to mean .* here. Let's choose one key phrase to check for. :)


-struct A { typedef int X; };            // { dg-error "previous declaration" }
+struct A { typedef int X; };

Let's change dg-error to dg-message instead of dropping the check entirely on at least one of these tests to avoid a diagnostic quality regression.


OK with those changes.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]