Hi!

I've fixed this PR already in r240198 as part of the PR77482
fix, thus I've just added the testcase for it.  Tested on x86_64-linux,
committed to trunk as obvious.

2016-11-15  Jakub Jelinek  <ja...@redhat.com>

        PR c++/71988
        * g++.dg/cpp0x/constexpr-71988.C: New test.

--- gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C.jj     2016-11-15 
16:15:45.002454953 +0100
+++ gcc/testsuite/g++.dg/cpp0x/constexpr-71988.C        2016-11-15 
16:16:22.799977409 +0100
@@ -0,0 +1,6 @@
+// PR c++/71988
+// { dg-do compile { target c++11 } }
+// { dg-options "-fdump-ipa-cgraph" }
+
+struct A {};
+constexpr A a;

        Jakub

Reply via email to