This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65108] Missing DWARF info for static const class members
- From: "wingo at igalia dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Feb 2015 14:36:37 +0000
- Subject: [Bug c++/65108] Missing DWARF info for static const class members
- Auto-submitted: auto-generated
- References: <bug-65108-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65108
--- Comment #1 from Andy Wingo <wingo at igalia dot com> ---
I mentioned this bug to Dodji Seketeli who said that this was probably an
instance of early constant folding causing Foo::one to appear unused.
On Dodji's suggestion I recompiled with -fno-eliminate-unused-debug-types and
indeed Foo::one was written out, so that would seem to indicate early folding
is the culprit.