Bug 637315

Summary: debug: Missing DW_AT_type for static member
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 14CC: aravindvijayan224185, jakub, jan.kratochvil
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-28 04:59:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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