From: Paolo Carlini Date: Mon, 18 Nov 2013 15:26:45 +0000 (+0000) Subject: re PR c++/53473 ([C++11] static constexpr noexcept cannot be specialized) X-Git-Tag: releases/gcc-4.9.0~2696 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=588224554ad5960b2e838e6d1698c27dd870b5d1;p=thirdparty%2Fgcc.git re PR c++/53473 ([C++11] static constexpr noexcept cannot be specialized) 2013-11-18 Paolo Carlini PR c++/53473 * g++.dg/cpp0x/constexpr-noexcept7.C: New. From-SVN: r204967 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 909942b39a56..253fb7133432 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-11-18 Paolo Carlini + + PR c++/53473 + * g++.dg/cpp0x/constexpr-noexcept7.C: New. + 2013-11-18 Richard Biener PR tree-optimization/59125 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C new file mode 100644 index 000000000000..2a70d7bb5298 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C @@ -0,0 +1,9 @@ +// PR c++/53473 +// { dg-do compile { target c++11 } } + +template struct A +{ + static constexpr T foo() noexcept { return 0; } +}; + +template<> constexpr int A::foo() noexcept { return 0; }