[PATCH] Fix the remaining PR c++/24666 blockers (arrays decay to pointers too early)

Jason Merrill jason@redhat.com
Thu Jan 21 18:43:00 GMT 2016


On 01/19/2016 10:30 PM, Patrick Palka wrote:
>      * g++.dg/template/unify17.C: XFAIL.

Hmm, I'm not comfortable with deliberately regressing this testcase.

>   template <typename T>
> -void bar (void (T[5])); // { dg-error "array of 'void'" }
> +void bar (void (T[5])); // { dg-error "array of 'void'" "" { xfail
> *-*-* } }

Can we work it so that T[5] also is un-decayed in the DECL_ARGUMENTS of 
bar, but decayed in the TYPE_ARG_TYPES?

Jason



More information about the Gcc-patches mailing list