re PR c++/87934 (struct with NSDMI of enum makes initialization a non-constant expres...
authorJakub Jelinek <jakub@redhat.com>
Wed, 19 Dec 2018 08:11:40 +0000 (09:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 19 Dec 2018 08:11:40 +0000 (09:11 +0100)
commit35d87f01947ab873477d72380b84d8b70659b541
tree1bd659fb7398aa8a5047a9eb2f910c2850b293de
parent0d3d674bcb173e8d694715c1e4fa24937cccc0f3
re PR c++/87934 (struct with NSDMI of enum makes initialization a non-constant expression)

PR c++/87934
* constexpr.c (cxx_eval_constant_expression) <case CONSTRUCTOR>: Do
re-process TREE_CONSTANT CONSTRUCTORs if they aren't reduced constant
expressions.

* g++.dg/cpp0x/constexpr-87934.C: New test.

From-SVN: r267253
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-87934.C [new file with mode: 0644]