[Bug debug/54508] Wrong debug information emitted if data members not referenced

pkoning at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 23 18:44:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54508

--- Comment #4 from pkoning at gcc dot gnu.org 2012-10-23 18:44:33 UTC ---
Author: pkoning
Date: Tue Oct 23 18:44:27 2012
New Revision: 192739

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192739
Log:
PR debug/54508
* dwarf2out.c (prune_unused_types_prune): If pruning a class and
not all its children were marked, add DW_AT_declaration flag.

* g++.dg/debug/dwarf2/pr54508.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr54508.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list