PR c++/85277 - ICE with invalid offsetof.
commit2dda6fc884d4819ed4e1c76f62ba8cb92fb149b4
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Apr 2018 20:40:06 +0000 (9 20:40 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Apr 2018 20:40:06 +0000 (9 20:40 +0000)
tree8dc93b0559e82d5531fdd344dce915c18881f648
parent9563ab7cbceb5300067325f08b34b2bf69460cec
PR c++/85277 - ICE with invalid offsetof.

* semantics.c (finish_offsetof): Avoid passing non-DECL to %qD.
Adjust -Winvalid-offsetof diagnostic to say conditionally supported.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259254 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/ext/builtin-offsetof1.C
gcc/testsuite/g++.dg/other/offsetof3.C
gcc/testsuite/g++.dg/other/offsetof5.C
gcc/testsuite/g++.dg/other/offsetof8.C