Commit 6a06deb4 by Paolo Carlini Committed by Paolo Carlini

re PR c++/57764 (class static constexpr variables cannot be references)

2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r214728
parent dee29e84
2014-08-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57764
* g++.dg/cpp0x/constexpr-57764.C: New.
2014-08-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59938
* g++.dg/cpp0x/constexpr-59938.C: New.
......
// PR c++/57764
// { dg-do compile { target c++11 } }
constexpr int x = 42;
struct S
{
static constexpr int const & y = x;
};
constexpr int const & S::y;
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