This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81575] ICE on C++ code: in cp_build_addr_expr_1, at cp/typeck.c:5793
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jul 2017 07:35:50 +0000
- Subject: [Bug c++/81575] ICE on C++ code: in cp_build_addr_expr_1, at cp/typeck.c:5793
- Auto-submitted: auto-generated
- References: <bug-81575-4@http.gcc.gnu.org/bugzilla/>
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.