[Bug c++/81575] ICE on C++ code: in cp_build_addr_expr_1, at cp/typeck.c:5793
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 27 07:35:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81575
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-07-27
Version|unknown |8.0
Ever confirmed|0 |1
Known to fail| |7.1.1, 8.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. clang++ rejects it with
t.C:1:16: error: default initialization of an object of const type 'const class
(anonymous class at t.C:1:1) [1]'
class {} const a[1];
^
1 error generated.
More information about the Gcc-bugs
mailing list