This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81575] [7/8 Regression] ICE on C++ code: in cp_build_addr_expr_1, at cp/typeck.c:5793
- From: "jakub 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 14:17:17 +0000
- Subject: [Bug c++/81575] [7/8 Regression] 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
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])’