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/54773] New: no debug info generated for rvalue reference


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773

             Bug #: 54773
           Summary: no debug info generated for rvalue reference
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: chihin.ko@oracle.com


Created attachment 28318
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28318
compileable c++ test case and dwarf dump

for c++0x feature rvalue reference, g++ should generate
DW_TAG_rvalue_reference_type, g++ generate DW_TAG_reference_type instead:

see attachment for test cases: a.out.dw 
shows debug info for function "void foo(int&& ii)" are


< 2><0x00000992>      DW_TAG_formal_parameter
                        DW_AT_name                  "ii"
                        DW_AT_decl_file             0x00000001
/net/benjamin2/export/ws/jeanko/ws/dbx_test/bugid/7189973/intel-Linux/t.cc
                        DW_AT_decl_line             0x0000001b
                        DW_AT_type                  <0x000009a0>
                        DW_AT_location              DW_OP_fbreg -24
< 1><0x000009a0>    DW_TAG_const_type
                      DW_AT_type                  <0x000009a5>
< 1><0x000009a5>    DW_TAG_reference_type
                      DW_AT_byte_size             0x00000008
                      DW_AT_type                  <0x00000062>


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