]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/88410
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Dec 2018 21:54:37 +0000 (21:54 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Dec 2018 21:54:37 +0000 (21:54 +0000)
commit26364f3e929d42bd87128ab2ed297cceacd3e1d6
treecaf2a15f344f9fad9f8519dd5171ebea378681f5
parent1cb32599b13f87a381012c53fb2975e1cbfc6527
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267220 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr88410.C [new file with mode: 0644]