From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9237 invoked by alias); 1 Oct 2012 22:22:34 -0000 Received: (qmail 9135 invoked by uid 48); 1 Oct 2012 22:22:18 -0000 From: "chihin.ko at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/54773] New: no debug info generated for rvalue reference Date: Mon, 01 Oct 2012 22:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chihin.ko at oracle dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg00067.txt.bz2 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>