mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 04:00:24 +08:00
re PR c++/57654 ([c++11] static class member reference-to-a-reference will not compile)
2014-11-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57654 * g++.dg/cpp0x/constexpr-ref7.C: New. From-SVN: r217756
This commit is contained in:
parent
d469883955
commit
6df34b29ae
gcc/testsuite
@ -1,3 +1,8 @@
|
||||
2014-11-19 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/57654
|
||||
* g++.dg/cpp0x/constexpr-ref7.C: New.
|
||||
|
||||
2014-11-19 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/63913
|
||||
|
11
gcc/testsuite/g++.dg/cpp0x/constexpr-ref7.C
Normal file
11
gcc/testsuite/g++.dg/cpp0x/constexpr-ref7.C
Normal file
@ -0,0 +1,11 @@
|
||||
// PR c++/57654
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
int i;
|
||||
|
||||
constexpr int & iref = i;
|
||||
constexpr int & irefref = iref;
|
||||
|
||||
class A {
|
||||
static constexpr int & irefref = iref;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user