[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2017-03-23 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251 chihin ko changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-10 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler at |

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-08 Thread paolo.carlini at oracle dot com
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.

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-08 Thread pinskia at gcc dot gnu.org
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

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-08 Thread chihin.ko at oracle dot com
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.

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-08 Thread pinskia at gcc dot gnu.org
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.

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-08 Thread chihin.ko at oracle dot com
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