This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 "Undefined symbol" linking error.
> This code is valid.

No, the code is invalid but a diagnostic is not required by the standard which
is why it is accepted.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]