[Bug c++/55694] LD error if 0 is added to int variable.

2012-12-14 Thread leonid at volnitsky dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55694 --- Comment #5 from Leonid Volnitsky 2012-12-15 06:01:47 UTC --- Thanks Jonathan. I've figured this out. One more reason why enum is better than static const.

[Bug c++/55694] LD error if 0 is added to int variable.

2012-12-14 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55694 --- Comment #4 from Jonathan Wakely 2012-12-14 22:02:35 UTC --- This is a FAQ http://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition

[Bug c++/55694] LD error if 0 is added to int variable.

2012-12-14 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55694 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/55694] LD error if 0 is added to int variable.

2012-12-14 Thread leonid at volnitsky dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55694 --- Comment #2 from Leonid Volnitsky 2012-12-14 19:35:19 UTC --- Created attachment 28965 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28965 no-error.ii.gz

[Bug c++/55694] LD error if 0 is added to int variable.

2012-12-14 Thread leonid at volnitsky dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55694 --- Comment #1 from Leonid Volnitsky 2012-12-14 19:34:14 UTC --- Created attachment 28963 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28963 ld-error.ii.gz