re PR c++/88410 (internal compiler error: output_operand: invalid expression as operand)
authorJakub Jelinek <jakub@redhat.com>
Mon, 17 Dec 2018 21:54:37 +0000 (22:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 17 Dec 2018 21:54:37 +0000 (22:54 +0100)
commit1e9d69235a88347d293dec7927e34dd38f6ee580
treecaf2a15f344f9fad9f8519dd5171ebea378681f5
parentf4d458f3fab13daa8a8adbc7165ee4a7050db3f6
re PR c++/88410 (internal compiler error: output_operand: invalid expression as operand)

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.

From-SVN: r267220
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr88410.C [new file with mode: 0644]