This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56251] no DW_AT_const_value for static const member of a template class
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 08 Feb 2013 22:09:58 +0000
- Subject: [Bug c++/56251] no DW_AT_const_value for static const member of a template class
- Auto-submitted: auto-generated
- References: <bug-56251-4@http.gcc.gnu.org/bugzilla/>
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.