https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81575
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org Target Milestone|--- |7.2 Summary|ICE on C++ code: in |[7/8 Regression] ICE on C++ |cp_build_addr_expr_1, at |code: in |cp/typeck.c:5793 |cp_build_addr_expr_1, at | |cp/typeck.c:5793 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Weird, at least clang 5.0.0 (trunk 304785) accepts it with warning: incompatible pointer to integer conversion assigning to 'int' from 'const class (anonymous class at pr81575.C:1:1) *' pedwarn. The ICE started with r246954. Before that it was rejected with: pr81575.C:6:8: error: invalid use of non-lvalue array c += a; ^ pr81575.C:6:8: error: in evaluation of ‘operator+=(int, class<unnamed> [1])’