This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/55641] debug info for the type of a reference declared with a typedef has spurious 'const'


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]