[Bug c++/88410] [8/9 Regression] internal compiler error: output_operand: invalid expression as operand
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 17 21:55:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88410
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Dec 17 21:54:37 2018
New Revision: 267220
URL: https://gcc.gnu.org/viewcvs?rev=267220&root=gcc&view=rev
Log:
PR c++/88410
* cp-gimplify.c (cp_fold) <case ADDR_EXPR>: 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:
trunk/gcc/testsuite/g++.dg/cpp0x/pr88410.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list