From 6aa698aa4dce009886b4c793b6aefe2d8977ef9d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 21 Dec 2018 13:11:57 +0100 Subject: [PATCH] re PR c++/87125 (ICE in tsubst_copy starting with r261084) PR c++/87125 * g++.dg/cpp0x/pr87125.C: New test. From-SVN: r267324 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr87125.C | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr87125.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1569e7aaa0f..749a7b71f35 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-12-21 Jakub Jelinek + + PR c++/87125 + * g++.dg/cpp0x/pr87125.C: New test. + 2018-12-21 Thomas Preud'homme * 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 index 00000000000..a24196b912a --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr87125.C @@ -0,0 +1,15 @@ +// PR c++/87125 +// { dg-do compile { target c++11 } } + +template +struct S { + template + constexpr S (U) noexcept (T ()) {} +}; +struct V : S { using S::S; }; + +bool +foo () +{ + return noexcept (V (0)); +} -- 2.30.2