This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/55641] debug info for the type of a reference declared with a typedef has spurious 'const'
- From: "mark at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Feb 2014 11:41:00 +0000
- Subject: [Bug debug/55641] debug info for the type of a reference declared with a typedef has spurious 'const'
- Auto-submitted: auto-generated
- References: <bug-55641-4 at http dot gcc dot gnu dot org/bugzilla/>
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"