re PR c++/60430 (static_assert and reference to const/constexpr)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 12 May 2017 17:53:54 +0000 (17:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 12 May 2017 17:53:54 +0000 (17:53 +0000)
2017-05-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60430
* g++.dg/cpp0x/pr60430.C: New.

From-SVN: r247986

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

index d3797eb21b431a9885c2581a4c75ab6615423062..c00c1627c041facc43cf0714db8775053a5e3b64 100644 (file)
@@ -1,3 +1,8 @@
+2017-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/60430
+       * g++.dg/cpp0x/pr60430.C: New.
+
 2017-05-12  Jeff Law  <law@redhat.com>
 
        * g++.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output.
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr60430.C b/gcc/testsuite/g++.dg/cpp0x/pr60430.C
new file mode 100644 (file)
index 0000000..04167d2
--- /dev/null
@@ -0,0 +1,5 @@
+// { dg-do compile { target c++11 } }
+
+constexpr const int A = 42;
+const int &B = A;
+static_assert(&A == &B, "Bug");