]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR c++/87125
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Dec 2018 12:11:57 +0000 (12:11 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Dec 2018 12:11:57 +0000 (12:11 +0000)
* g++.dg/cpp0x/pr87125.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267324 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 1569e7aaa0f9eaaa498b126aba0a818820cccc24..749a7b71f35c3c2b5ea3a00c4f17dfe1f57a9cfb 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/87125
+       * g++.dg/cpp0x/pr87125.C: New test.
+
 2018-12-21  Thomas Preud'homme  <thomas.preudhomme@linaro.org>
 
        * gcc.target/arm/size-optimization-ieee-1.c: Skip if passing
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr87125.C b/gcc/testsuite/g++.dg/cpp0x/pr87125.C
new file mode 100644 (file)
index 0000000..a24196b
--- /dev/null
@@ -0,0 +1,15 @@
+// PR c++/87125
+// { dg-do compile { target c++11 } }
+
+template <typename T>
+struct S {
+  template <typename U>
+  constexpr S (U) noexcept (T ()) {}
+};
+struct V : S<int> { using S::S; };
+
+bool
+foo ()
+{
+  return noexcept (V (0));
+}