aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Beliveau <mbelivea@redhat.com>2019-06-10 20:35:00 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2019-06-10 20:35:00 +0000
commitfa237d91e8cb88c7d228f0888ef5c1f3e8ad6d4a (patch)
treec46c83bac353e8c10b48e73a0344c00852d5a49f
parent620adbec08f9483d73b1f1e1edcd2f181a213a3c (diff)
downloadgcc-fa237d91e8cb88c7d228f0888ef5c1f3e8ad6d4a.zip
gcc-fa237d91e8cb88c7d228f0888ef5c1f3e8ad6d4a.tar.gz
gcc-fa237d91e8cb88c7d228f0888ef5c1f3e8ad6d4a.tar.bz2
re PR c++/87250 (Internal compiler error with -Os -fsyntax-only)
PR c++/87250 * g++.dg/cpp0x/pr87250.C: New test. From-SVN: r272129
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr87250.C12
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6a1967f..a40e014 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2019-06-10 Matthew Beliveau <mbelivea@redhat.com>
+
+ PR c++/87250
+ * g++.dg/cpp0x/pr87250.C: New test.
+
2019-06-10 Jakub Jelinek <jakub@redhat.com>
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 0000000..fe4bf14
--- /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 <typename> struct a {
+ constexpr a(int) {}
+};
+template <typename> struct atomic;
+template <> struct atomic<bool> {
+ a<bool> b;
+ constexpr atomic(bool c) : b(c) {}
+};