https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
chihin ko changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
Daniel Krügler daniel.kruegler at googlemail dot com changed:
What|Removed |Added
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #2 from chihin ko chihin.ko at oracle dot com 2013-02-08 21:24:55
UTC ---
How is it invalid ? it was compilable and runnable:
benjamin2 906 /pkg/gnu/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/pkg/gnu/bin/g++-4.7.1-5.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org 2013-02-08
21:28:25 UTC ---
You only declare the variable. There is no definition of the variable in the
program.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #4 from chihin ko chihin.ko at oracle dot com 2013-02-08 22:01:36
UTC ---
Note, this is a const static member, the initialization is the definition,
if I don't initialize it, I would get an Undefined symbol linking error.
This
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #5 from Andrew Pinski pinskia at gcc dot gnu.org 2013-02-08
22:09:58 UTC ---
(In reply to comment #4)
Note, this is a const static member, the initialization is the definition,
if I don't initialize it, I would get an
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #6 from Paolo Carlini paolo.carlini at oracle dot com 2013-02-08
22:50:35 UTC ---
See, eg, c++/30745 and many duplicates elsewhere.