Commit 6df34b29 by Paolo Carlini Committed by Paolo Carlini

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
parent d4698839
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
......
// 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;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment