[Bug c++/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, at cp/constexpr.c:1778

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 2 14:12:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84632

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In fact, not considering error-recovery issues a la c++/72825, we have another
rather serious issue here: for the already mentioned init/array testcases we
shouldn't give first an error message about the initializer failing to
determine the size and then one explaining that the array must be initialized
with a brace-enclosed initializer, we should emit only the latter. This isn't
trivial to fix. I'll see what I can do.


More information about the Gcc-bugs mailing list