[Bug c++/88410] [8 Regression] internal compiler error: output_operand: invalid expression as operand

2019-01-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88410

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Jakub Jelinek  ---
Fixed for 8.3+ too.

[Bug c++/88410] [8 Regression] internal compiler error: output_operand: invalid expression as operand

2019-01-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88410

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Tue Jan  8 10:22:44 2019
New Revision: 267710

URL: https://gcc.gnu.org/viewcvs?rev=267710=gcc=rev
Log:
Backported from mainline
2018-12-17  Jakub Jelinek  

PR c++/88410
* cp-gimplify.c (cp_fold) : For offsetof-like folding,
call maybe_constant_value on val to see if it is INTEGER_CST.

* g++.dg/cpp0x/pr88410.C: New test.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/pr88410.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/cp-gimplify.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug c++/88410] [8 Regression] internal compiler error: output_operand: invalid expression as operand

2018-12-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88410

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[8/9 Regression] internal   |[8 Regression] internal
   |compiler error: |compiler error:
   |output_operand: invalid |output_operand: invalid
   |expression as operand   |expression as operand

--- Comment #4 from Jakub Jelinek  ---
Fixed on the trunk so far.