Bug 637315 - debug: Missing DW_AT_type for static member
Summary: debug: Missing DW_AT_type for static member
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 14
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-24 21:47 UTC by Jan Kratochvil
Modified: 2011-12-29 23:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-28 04:59:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2010-09-24 21:47:11 UTC
Description of problem:
F13 gcc and all FSF GCCs provide it, not sure where comes the regression from.

Version-Release number of selected component (if applicable):
PASS: gcc-4.4.4-10.fc13.x86_64
PASS: g++ (GCC) 4.4.5 20100924 (prerelease)
PASS: g++ (GCC) 4.5.2 20100924 (prerelease)
PASS: g++ (GCC) 4.6.0 20100923 (experimental)
FAIL: gcc-4.5.1-3.fc14.x86_64

How reproducible:
Always.

Steps to Reproduce:
echo 'class C { static C s; } c; C C::s;'|g++ -c -g -o 1.o -x c++ -
readelf -wi 1.o

Actual results:
FAIL:
 <1><29>: Abbrev Number: 2 (DW_TAG_class_type)
    <2a>   DW_AT_name        : C        
...
 <2><33>: Abbrev Number: 3 (DW_TAG_member)
    <34>   DW_AT_name        : s
    <36>   DW_AT_decl_file   : 1
    <37>   DW_AT_decl_line   : 1
    <38>   DW_AT_external    : 1
    <39>   DW_AT_accessibility: 3       (private)
    <3a>   DW_AT_declaration : 1

Expected results:
PASS:
 <1><29>: Abbrev Number: 2 (DW_TAG_class_type)
    <2a>   DW_AT_name        : C        
...
 <2><33>: Abbrev Number: 3 (DW_TAG_member)
    <34>   DW_AT_name        : s
    <36>   DW_AT_decl_file   : 1
    <37>   DW_AT_decl_line   : 1
    <38>   DW_AT_type        : <0x29>
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
    <3c>   DW_AT_external    : 1
    <3d>   DW_AT_declaration : 1

Additional info:

Comment 1 Aravind vijayan 2011-12-28 04:59:26 UTC
    Thank you for your bug report. 

    We are sorry, but the Fedora Project is no longer releasing bug fixes or any other updates for this version of Fedora. This bug will be set to CLOSED:WONTFIX to reflect this, but please reopen it if the problem persists after upgrading to the latest version of Fedora, which is available from: 

    http://fedoraproject.org/get-fedora 



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 2 Jan Kratochvil 2011-12-29 23:59:07 UTC
PASS: gcc-4.6.1-9.fc15.x86_64
PASS: gcc-4.6.2-1.fc16.x86_64
PASS: gcc-4.6.2-1.fc17.1.x86_64
PASS: gcc-4.7.0-0.1.fc17.x86_64


Note You need to log in before you can comment on or make changes to this bug.