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 changed:
What|Removed |Added
CC||daniel.kruegler at
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #6 from Paolo Carlini 2013-02-08
22:50:35 UTC ---
See, eg, c++/30745 and many duplicates elsewhere.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #5 from Andrew Pinski 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 "Undefined symbol" linking error
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #4 from chihin ko 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 code is valid.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251
--- Comment #3 from Andrew Pinski 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 #2 from chihin ko 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
COLLECT_LTO_WRAPPER=/pkg/gnu