From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23004 invoked by alias); 8 Feb 2013 22:10:24 -0000 Received: (qmail 22687 invoked by uid 48); 8 Feb 2013 22:10:00 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56251] no DW_AT_const_value for static const member of a template class Date: Fri, 08 Feb 2013 22:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-02/txt/msg00871.txt.bz2 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. > This code is valid. No, the code is invalid but a diagnostic is not required by the standard which is why it is accepted.