From 0c8a8fe248a0a50e279be7780dfd7c5126c9143c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 15 Nov 2016 16:21:49 +0100 Subject: [PATCH] re PR c++/71988 (ICE in dump_simple_decl (gcc/cp/error.c:965)) PR c++/71988 * g++.dg/cpp0x/constexpr-71988.C: New test. From-SVN: r242426 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e0c99bf50a2..6d4034a6463 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-11-15 Jakub Jelinek + + PR c++/71988 + * g++.dg/cpp0x/constexpr-71988.C: New test. + 2016-11-15 Maciej W. Rozycki * 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 index 00000000000..3a30e836894 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C @@ -0,0 +1,6 @@ +// PR c++/71988 +// { dg-do compile { target c++11 } } +// { dg-options "-fdump-ipa-cgraph" } + +struct A {}; +constexpr A a; -- 2.30.2