[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:41:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55641
Mark Wielaard <mark at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at gcc dot gnu.org
--- Comment #5 from Mark Wielaard <mark at gcc dot gnu.org> ---
Confirmed with g++ (GCC) 4.9.0 20140219 (experimental)
Variable f comes out as:
[ 48] variable
name (string) "f"
decl_file (data1) 1
decl_line (data1) 3
type (ref4) [ 5b]
external (flag_present) Yes
location (exprloc) [ 0] addr .rodata+0
<f>
[ 5b] const_type
type (ref4) [ 1d]
With DIE 1d as expected:
[ 1d] typedef
name (string) "foo"
decl_file (data1) 1
decl_line (data1) 1
type (ref4) [ 28]
[ 28] reference_type
byte_size (data1) 8
type (ref4) [ 2e]
[ 2e] base_type
byte_size (data1) 4
encoding (data1) signed (5)
name (string) "int"
More information about the Gcc-bugs
mailing list