[PATCH] PR c++/55311 - Cannot specialize alias template with arg of type array of char

Jason Merrill jason@redhat.com
Mon Dec 24 05:38:00 GMT 2012

On 12/22/2012 11:03 AM, Dodji Seketeli wrote:
> [1]: The relacement of the VAR_DECL by its initializer is done by
> decay_conversion by callig decl_constant_value_safe.  That replacement
> doesn't happen if processing_template_decl is not set.  That's why it
> doesn't happen for the class template instantiation at line 9, leading
> to no error message there.

This is the bug.  decay_conversion on an array should take the address, 
not return the initializer.


More information about the Gcc-patches mailing list