From: Jakub Jelinek Date: Fri, 21 Dec 2018 12:11:57 +0000 (+0100) Subject: re PR c++/87125 (ICE in tsubst_copy starting with r261084) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6aa698aa4dce009886b4c793b6aefe2d8977ef9d;p=gcc.git re PR c++/87125 (ICE in tsubst_copy starting with r261084) PR c++/87125 * g++.dg/cpp0x/pr87125.C: New test. From-SVN: r267324 --- 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)); +}