re PR c++/71988 (ICE in dump_simple_decl (gcc/cp/error.c:965))
authorJakub Jelinek <jakub@redhat.com>
Tue, 15 Nov 2016 15:21:49 +0000 (16:21 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 15 Nov 2016 15:21:49 +0000 (16:21 +0100)
PR c++/71988
* g++.dg/cpp0x/constexpr-71988.C: New test.

From-SVN: r242426

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C [new file with mode: 0644]

index e0c99bf50a2d37749334f3bde8305bdf7da42e01..6d4034a6463e1e343830e7444307a89cc2f66044 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/71988
+       * g++.dg/cpp0x/constexpr-71988.C: New test.
+
 2016-11-15  Maciej W. Rozycki  <macro@imgtec.com>
 
        * gcc.target/mips/insn-casesi.c: New test case.
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C
new file mode 100644 (file)
index 0000000..3a30e83
--- /dev/null
@@ -0,0 +1,6 @@
+// PR c++/71988
+// { dg-do compile { target c++11 } }
+// { dg-options "-fdump-ipa-cgraph" }
+
+struct A {};
+constexpr A a;