re PR c++/87897 (ICE in maybe_constant_value, at cp/constexpr.c:5255 since r265788)
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Dec 2018 08:43:12 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Dec 2018 08:43:12 +0000 (09:43 +0100)
PR c++/87897
* g++.dg/init/const13.C: New test.

From-SVN: r266818

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/const13.C [new file with mode: 0644]

index 1c9008261ebd523776aeca3e7566659e0d7e5104..abc2d2ff18f469e93135d10eb27d62d054d6f427 100644 (file)
@@ -1,5 +1,8 @@
 2018-12-05  Jakub Jelinek  <jakub@redhat.com>
 
+       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 (file)
index 0000000..f47a4c1
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/87897
+// { dg-do compile }
+
+typedef struct A {} B;
+A const a = B ();