re PR c++/89336 (internal compiler error when compiling a constexpr function)
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Feb 2019 21:16:27 +0000 (22:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Feb 2019 21:16:27 +0000 (22:16 +0100)
commited4ec9ceba552e5a04458af8923a2117b87e3ee8
tree671cba26b4ffd52b5a18bf6ad06cd4afb7becb05
parent200a8e1a38d11c112a460e026663e8301b201d85
re PR c++/89336 (internal compiler error when compiling a constexpr function)

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.

From-SVN: r269052
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-89336-3.C [new file with mode: 0644]