[Bug debug/55641] debug info for the type of a reference declared with a typedef has spurious 'const'
mark at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 25 11:45:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55641
--- Comment #6 from Mark Wielaard <mark at gcc dot gnu.org> ---
Note that if we add:
const foo g(x);
It comes out with just one const_type added:
[ 60] variable
name (string) "g"
decl_file (data1) 1
decl_line (data1) 4
type (ref4) [ 73]
external (flag_present) Yes
location (exprloc) [ 0] addr
.rodata+0x
8 <g>
[ 73] const_type
type (ref4) [ 1d]
So the new DIE 73 is a duplicate of DIE 5b.
More information about the Gcc-bugs
mailing list