https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120571
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If you just compile the header or a trivial TU that includes it (without the
part that defines the type), at least with -fno-eliminate-unused-debug-types
-fno-eliminate-unused-debug-symbols you get the DW_AT_declaration for it
(though it seems we don't add DW_AT_decl_{file,line,column} in that case).
Emitting both a DIE for the forward declaration (and any number of them?) at
least by default would be very wasteful.