[Bug c++/89336] internal compiler error when compiling a constexpr function

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 20 21:17:00 GMT 2019


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 20 21:16:27 2019
New Revision: 269052

URL: https://gcc.gnu.org/viewcvs?rev=269052&root=gcc&view=rev
Log:
        PR c++/89336
        * constexpr.c (cxx_eval_store_expression): Diagnose changing of active
        union member for -std=c++17 and earlier.

        * g++.dg/cpp1y/constexpr-89336-3.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-89336-3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list