[Bug c++/49311] Missing static const symbol with -O0

2011-06-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 --- Comment #8 from Jonathan Wakely 2011-06-08 10:27:28 UTC --- (In reply to comment #7) > > Does the way I use an rvalue change it's definition? I don't understand the question, I don't know what you mean by the definition of an rvalue. > So

[Bug c++/49311] Missing static const symbol with -O0

2011-06-08 Thread hartmut.schirmer at arcormail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 --- Comment #7 from Hartmut Schirmer 2011-06-08 09:57:58 UTC --- > > class A > > { > > public: > > static const unsigned first = 1; > > enum { second = 2 }; > > }; > > > > should behave similar in all cases address of first isn't taken. > >

[Bug c++/49311] Missing static const symbol with -O0

2011-06-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 --- Comment #6 from Jonathan Wakely 2011-06-08 08:02:19 UTC --- (In reply to comment #4) > (In reply to comment #3) > > This is a dup of > > I think there are several hundred already. Not worth marking them as > duplicate, > it just further up

[Bug c++/49311] Missing static const symbol with -O0

2011-06-07 Thread hartmut.schirmer at arcormail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 --- Comment #5 from Hartmut Schirmer 2011-06-08 05:25:44 UTC --- > I think there are several hundred already. Oh, this list was helpful, thanks! > Not worth marking them as duplicate, > it just further upsets people receiving notifications for

[Bug c++/49311] Missing static const symbol with -O0

2011-06-07 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment

[Bug c++/49311] Missing static const symbol with -O0

2011-06-07 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 --- Comment #3 from Jonathan Wakely 2011-06-07 15:57:43 UTC --- This is a dup of PR 10483 PR 13795 PR 13332 PR 13259 PR 44673 PR 42101

[Bug c++/49311] Missing static const symbol with -O0

2011-06-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/49311] Missing static const symbol with -O0

2011-06-07 Thread hartmut.schirmer at arcormail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311 --- Comment #1 from Hartmut Schirmer 2011-06-07 14:11:17 UTC --- Created attachment 24458 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24458 Small test case Note bar() doesn't fail Simple changes like return direction==0 ? A::PEN+0 :