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

           Summary: -gdwarf-3 creates invalid DWARF3 with
                    DW_AT_data_member_location attribute
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Keywords: wrong-debug
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ja...@gcc.gnu.org


As mentioned in
http://sources.redhat.com/ml/binutils/2011-07/msg00237.html

/* { dg-options "-gdwarf-3" } */
struct s { char a[1<<24]; int b; } s;

results in invalid DWARF3, as DW_AT_data_member_location attribute uses
DW_FORM_data4 for constant value, while the standard says that in this case
DW_FORM_data4 or DW_FORM_data8 aren't allowed for constants and are used for
loclistptr instead.

Reply via email to