https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85277

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Apr  9 20:40:06 2018
New Revision: 259254

URL: https://gcc.gnu.org/viewcvs?rev=259254&root=gcc&view=rev
Log:
        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.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/g++.dg/ext/builtin-offsetof1.C
    trunk/gcc/testsuite/g++.dg/other/offsetof3.C
    trunk/gcc/testsuite/g++.dg/other/offsetof5.C
    trunk/gcc/testsuite/g++.dg/other/offsetof8.C

Reply via email to