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] Fix the remaining PR c++/24666 blockers (arrays decay to pointers too early)


On Thu, 21 Jan 2016, Jason Merrill wrote:

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?

I think so, I'll try it.


Jason




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