From 9c6ff7b2251f5826485d778a81760e65cb1a66a8 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 5 Dec 2018 09:43:12 +0100 Subject: [PATCH] re PR c++/87897 (ICE in maybe_constant_value, at cp/constexpr.c:5255 since r265788) PR c++/87897 * g++.dg/init/const13.C: New test. From-SVN: r266818 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.dg/init/const13.C | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 gcc/testsuite/g++.dg/init/const13.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1c9008261eb..abc2d2ff18f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2018-12-05 Jakub Jelinek + PR c++/87897 + * g++.dg/init/const13.C: New test. + PR sanitizer/88333 * c-c++-common/asan/pr88333.c: New test. diff --git a/gcc/testsuite/g++.dg/init/const13.C b/gcc/testsuite/g++.dg/init/const13.C new file mode 100644 index 00000000000..f47a4c1b5ff --- /dev/null +++ b/gcc/testsuite/g++.dg/init/const13.C @@ -0,0 +1,5 @@ +// PR c++/87897 +// { dg-do compile } + +typedef struct A {} B; +A const a = B (); -- 2.30.2