From fa237d91e8cb88c7d228f0888ef5c1f3e8ad6d4a Mon Sep 17 00:00:00 2001 From: Matthew Beliveau Date: Mon, 10 Jun 2019 20:35:00 +0000 Subject: [PATCH] re PR c++/87250 (Internal compiler error with -Os -fsyntax-only) PR c++/87250 * g++.dg/cpp0x/pr87250.C: New test. From-SVN: r272129 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr87250.C | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr87250.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6a1967f8211..a40e0141a49 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-06-10 Matthew Beliveau + + PR c++/87250 + * g++.dg/cpp0x/pr87250.C: New test. + 2019-06-10 Jakub Jelinek PR testsuite/90772 diff --git a/gcc/testsuite/g++.dg/cpp0x/pr87250.C b/gcc/testsuite/g++.dg/cpp0x/pr87250.C new file mode 100644 index 00000000000..fe4bf1407de --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr87250.C @@ -0,0 +1,12 @@ +// PR c++/87250 +// { dg-do compile { target c++11 } } +// { dg-options "-Os -fsyntax-only" } + +template struct a { + constexpr a(int) {} +}; +template struct atomic; +template <> struct atomic { + a b; + constexpr atomic(bool c) : b(c) {} +}; -- 2.30.2