[Bug c++/57764] class static constexpr variables cannot be references

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 1 18:32:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57764

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The problem indeed seems to occur for static data members only and it occurs,
if the referenced variable is usable in integral constant expressions, such as
when declared as

const int x = 42;

or

constexpr int x = 42;

The problem exists for gcc 4.9.0 trunk as well.


More information about the Gcc-bugs mailing list