[Bug c++/57557] can't reference static const int member with optimizations on

2013-06-07 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57557 Jonathan Wakely changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #5 from Jonathan Wa

[Bug c++/57557] can't reference static const int member with optimizations on

2013-06-07 Thread pavel.v.chupin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57557 Pavel Chupin changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #4 from Pavel Chupin --

[Bug c++/57557] can't reference static const int member with optimizations on

2013-06-07 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57557 --- Comment #3 from Jonathan Wakely --- Doh, sorry, I completely misread the test! It's still undefined behaviour though, obj is uninitialized and you're missing a return from A::foo

[Bug c++/57557] can't reference static const int member with optimizations on

2013-06-07 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57557 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > It's undefined behaviour, you take a reference ton object that has no s/ton object/to an object/

[Bug c++/57557] can't reference static const int member with optimizations on

2013-06-07 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57557 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---