re PR c++/54020 ([c++0x] incorrectly accepted constexpr functions)
authorJason Merrill <jason@redhat.com>
Wed, 25 Jul 2012 14:56:57 +0000 (10:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 Jul 2012 14:56:57 +0000 (10:56 -0400)
commit9155a6ddc40af0eed7079eac318e6dd864dcdbc9
tree8e81ba95c15901f6fa7c5c5c1581d3192ee2fcd3
parent5e7b9f609af51eb9e5523f19e3faea764f634657
re PR c++/54020 ([c++0x] incorrectly accepted constexpr functions)

PR c++/54020
* semantics.c (potential_constant_expression_1) [COND_EXPR]: Call
maybe_constant_value.

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