[PATCH] PR c++/51145 - Alias template in elaborated-type-specifier
Jason Merrill
jason@redhat.com
Tue Nov 22 15:28:00 GMT 2011
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
More information about the Gcc-patches
mailing list