From: Matthew Beliveau Date: Mon, 10 Jun 2019 20:35:00 +0000 (+0000) Subject: re PR c++/87250 (Internal compiler error with -Os -fsyntax-only) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa237d91e8cb88c7d228f0888ef5c1f3e8ad6d4a;p=gcc.git re PR c++/87250 (Internal compiler error with -Os -fsyntax-only) PR c++/87250 * g++.dg/cpp0x/pr87250.C: New test. From-SVN: r272129 --- 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) {} +};