the attached code snippet (from WINE) leaves a dangling reference when compile with debugging info.
$ ~/projects/gcc/BIN/bin/gcc -c fci.i -O2 ; nm fci.o $ ~/projects/gcc/BIN/bin/gcc -c fci.i -g -O2 ; nm fci.o U __wine_dbch_cabinet $ -- Summary: static reference not optimized, leaving dangling reference Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: marcus at jet dot franken dot de GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28673