diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2017-05-12 17:53:54 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2017-05-12 17:53:54 +0000 |
commit | 2a3fa75aac85ff2583799db0204c20e2b8ca8ba8 (patch) | |
tree | 3deeaf4e493f58182a12e667ef888bc66030be16 | |
parent | e8bf7c7b7508468ce3a097200b3a6322d1fb9a1c (diff) | |
download | gcc-2a3fa75aac85ff2583799db0204c20e2b8ca8ba8.zip gcc-2a3fa75aac85ff2583799db0204c20e2b8ca8ba8.tar.gz gcc-2a3fa75aac85ff2583799db0204c20e2b8ca8ba8.tar.bz2 |
re PR c++/60430 (static_assert and reference to const/constexpr)
2017-05-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60430
* g++.dg/cpp0x/pr60430.C: New.
From-SVN: r247986
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr60430.C | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d3797eb..c00c162 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..04167d2 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr60430.C @@ -0,0 +1,5 @@ +// { dg-do compile { target c++11 } } + +constexpr const int A = 42; +const int &B = A; +static_assert(&A == &B, "Bug"); |