c++: Remove GCC12 FIXME for DR1312
authorMarek Polacek <polacek@redhat.com>
Wed, 28 Apr 2021 23:11:14 +0000 (19:11 -0400)
committerMarek Polacek <polacek@redhat.com>
Mon, 3 May 2021 16:27:30 +0000 (12:27 -0400)
commit6252e35cf5cea9a30a57ceffbc7a9f3160900a45
tree982cd8da2dcd4128ef2cf78dac60bd52b6bf0126
parent0871fe27c24481d3ab5e9b4f40ac2e6629e2dc99
c++: Remove GCC12 FIXME for DR1312

This patch removes a FIXME I left for myself for GCC 12, along with
adjusting the relevant test.

gcc/cp/ChangeLog:

DR 1312
* constexpr.c (cxx_eval_constant_expression): Don't check
integer_zerop.

gcc/testsuite/ChangeLog:

DR 1312
* g++.dg/cpp0x/constexpr-cast2.C: Remove XFAILs.
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-cast2.C