]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/53473 ([C++11] static constexpr noexcept cannot be specialized)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 18 Nov 2013 15:26:45 +0000 (15:26 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 18 Nov 2013 15:26:45 +0000 (15:26 +0000)
2013-11-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53473
* g++.dg/cpp0x/constexpr-noexcept7.C: New.

From-SVN: r204967

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C [new file with mode: 0644]

index 909942b39a56589a7753aaa5f31e601f3eaaa6d3..253fb71334321419d79ceeeeacb7c163ea274ea2 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/53473
+       * g++.dg/cpp0x/constexpr-noexcept7.C: New.
+
 2013-11-18  Richard Biener  <rguenther@suse.de>
 
        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 (file)
index 0000000..2a70d7b
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/53473
+// { dg-do compile { target c++11 } }
+
+template<typename T> struct A
+{
+  static constexpr T foo() noexcept { return 0; }
+};
+
+template<> constexpr int A<int>::foo() noexcept { return 0; }