From: Jakub Jelinek Date: Wed, 5 Dec 2018 08:43:12 +0000 (+0100) Subject: re PR c++/87897 (ICE in maybe_constant_value, at cp/constexpr.c:5255 since r265788) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c6ff7b2251f5826485d778a81760e65cb1a66a8;p=gcc.git 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 --- 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 ();