PR c++/85277 - ICE with invalid offsetof.
authorJason Merrill <jason@redhat.com>
Mon, 9 Apr 2018 20:40:06 +0000 (16:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 9 Apr 2018 20:40:06 +0000 (16:40 -0400)
commite9f59cfa4a357121c65c0911de5ac0d271bcdc59
tree8dc93b0559e82d5531fdd344dce915c18881f648
parent68a8efea502cd7c086f26a4b4c93fd8ea5dd4fdc
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.

From-SVN: r259254
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