From 37cfabb0b4263b12d84037c608bfe6e854cdda01 Mon Sep 17 00:00:00 2001 From: Daniel Kruegler Date: Wed, 15 Oct 2014 21:08:59 +0000 Subject: [PATCH] re PR c++/53000 (Conditional operator does not behave as standardized) 2014-10-15 Daniel Krugler * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: Enable tests predicated on PR c++/53000. From-SVN: r216287 --- libstdc++-v3/ChangeLog | 5 +++++ .../common_type/requirements/sfinae_friendly_1.cc | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 89b86eb1b208..b215f004401c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2014-10-15 Daniel Krugler + + * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: + Enable tests predicated on PR c++/53000. + 2014-10-15 François Dumont Jonathan Wakely diff --git a/libstdc++-v3/testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc b/libstdc++-v3/testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc index 3a4251cb736e..7f83b8cfc7c1 100644 --- a/libstdc++-v3/testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc +++ b/libstdc++-v3/testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc @@ -21,9 +21,6 @@ #include #include -//TODO: Uncomment this once gcc bug 53000 has been resolved: -//#define HAS_53000_FIXED - // Helper types: struct has_type_impl { @@ -246,15 +243,17 @@ static_assert(is_type, static_assert(is_type, Abstract*>(), ""); static_assert(is_type, Abstract*>(), ""); -#ifdef HAS_53000_FIXED static_assert(is_type, Abstract>(), ""); static_assert(is_type, Abstract>(), ""); +static_assert(is_type, Abstract>(), ""); static_assert(is_type, Ukn>(), ""); -static_assert(is_type, +static_assert(is_type, + Ukn>(), ""); +static_assert(is_type, Ukn>(), ""); -#endif static_assert(is_type, RX12>(), ""); static_assert(is_type, RX21>(), ""); -- 2.43.5