[Bug c++/78329] incorrect debug info for return type deduction C++14
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 6 22:17:51 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78329
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang outputs the same here, that is the "auto" type.
.byte 4 # Abbrev [4] 0x48:0x1b
DW_TAG_subprogram
.long .Linfo_string5 # DW_AT_linkage_name
.long .Linfo_string6 # DW_AT_name
.byte 1 # DW_AT_decl_file
.byte 4 # DW_AT_decl_line
.long 198 # DW_AT_type
# DW_AT_declaration
# DW_AT_external
.byte 1 # DW_AT_accessibility
# DW_ACCESS_public
....
.byte 11 # Abbrev [11] 0xc6:0x5
DW_TAG_unspecified_type
.long .Linfo_string7 # DW_AT_name
...
.Linfo_string5:
.asciz "_ZN2AA4funcEi" # string offset=132
.Linfo_string6:
.asciz "func" # string offset=146
.Linfo_string7:
.asciz "auto" # string offset=151
More information about the Gcc-bugs
mailing list