[Bug c++/79896] [5/6/7 Regression] ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target

2017-03-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79896

--- Comment #4 from Jakub Jelinek  ---
Author: jakub
Date: Fri Mar 10 15:28:26 2017
New Revision: 246034

URL: https://gcc.gnu.org/viewcvs?rev=246034=gcc=rev
Log:
PR c++/79896
* decl.c (finish_enum_value_list): If value is error_mark_node,
don't copy it and change its type.
* init.c (constant_value_1): Return error_mark_node if DECL_INITIAL
of CONST_DECL is error_mark_node.

* g++.dg/ext/int128-5.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/ext/int128-5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog

[Bug c++/79896] [5/6/7 Regression] ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target

2017-03-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79896

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
   Priority|P3  |P5
   Target Milestone|7.0 |5.5

[Bug c++/79896] [5/6/7 Regression] ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target

2017-03-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79896

Marek Polacek  changed:

   What|Removed |Added

 CC||gerhard.steinmetz.fortran@t
   ||-online.de

--- Comment #3 from Marek Polacek  ---
*** Bug 79785 has been marked as a duplicate of this bug. ***

[Bug c++/79896] [5/6/7 Regression] ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target

2017-03-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79896

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
Created attachment 40909
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40909=edit
gcc7-pr79896.patch

Untested fix.

[Bug c++/79896] [5/6/7 Regression] ICE in gimplify_expr, at gimplify.c:11950 on non-int128 target

2017-03-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79896

Jakub Jelinek  changed:

   What|Removed |Added

   Keywords|ice-on-invalid-code |error-recovery
 Target|arm-linux-gnueabi   |
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-03-07
   Target Milestone|--- |7.0
Summary|ICE in gimplify_expr, at|[5/6/7 Regression] ICE in
   |gimplify.c:11950 on ARM |gimplify_expr, at
   |target  |gimplify.c:11950 on
   ||non-int128 target
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
Started in between r104000 and r106000.  ICEs also on x86_64 with -m32 and I
guess all other non-int128 targets.