This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/51650] [4.7 regression] LTO ICE in dwarf2out_finish, at dwarf2out.c:22501 while building libxul
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Dec 2011 11:45:53 +0000
- Subject: [Bug debug/51650] [4.7 regression] LTO ICE in dwarf2out_finish, at dwarf2out.c:22501 while building libxul
- Auto-submitted: auto-generated
- References: <bug-51650-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51650
--- Comment #18 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-23 11:45:53 UTC ---
Even for
struct T;
struct C
{
typedef ::T T;
static T *m ()
{
static T *d __attribute__((used));
return d;
}
};
int
fn ()
{
C::m ();
}
int main() {}
the C++ frontend works fine with -fwhole-program -g, outputting debug
information for C::m()::d (but in a way not accessible to gdb - huh):
16 int main() {}
(gdb) ptype 'C::m()::d'
type = <data variable, no debug info>
(gdb) p 'C::m()::d'
$1 = 0