See conversation at <http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01230.html>. The changed default for that option exposes the bug; -femit-class-debug-always should not be required to emit debug info for "class2".
-- Summary: debug info for class2 in g++.dg/other/unused1.C requires -femit-class-debug-always Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hp at gcc dot gnu dot org GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: cris-axis-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33429