[Bug c++/78897] [6/7 Regression] ICE: in output_constructor_regular_field, at varasm.c:5019

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 10 20:09:00 GMT 2017


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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 10 20:08:39 2017
New Revision: 245342

URL: https://gcc.gnu.org/viewcvs?rev=245342&root=gcc&view=rev
Log:
        PR c++/78897 - constexpr union

        * constexpr.c (cxx_eval_store_expression): A store to a union member
        erases a previous store to another member.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-union1.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/constexpr.c


More information about the Gcc-bugs mailing list