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: [C++ Patch] PR 84632 ("[8 Regression] internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in reduced_constant_expression_p...")


On Thu, Mar 22, 2018 at 3:35 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi again,
>
> On 22/03/2018 19:58, Paolo Carlini wrote:
>
> Nice. While I start implementing the above, any hint about thing like
> g++.dg/cpp0x/initlist68.C, which we would reject because involves a plain
> constructor of type ARRAY_TYPE, not a proper BRACE_ENCLOSED_INITIALIZER_P?
> Also, less important I guess, we would also reject g++.dg/torture/pr70499.C
> to which you added -fpermissive in the occasion of c++/78345. Or maybe you
> meant something a bit less drastic ;)
>
> I suspect that allowing for either BRACE_ENCLOSED_INITIALIZER_P or
> CONSTRUCTOR with a check of the type (like you changed build_vec_init at the
> time:
> https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/cp/init.c?r1=246244&r2=246243&pathrev=246244
> ) would work fine.

Yes, that sounds good.  And if pr70499.C fails, let's fix the testcase
to add the missing braces.

Jason


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