The class contains only one array member with unspecified size has a zero size.

The problem was reproduced on gcc 3.3.6 (Knoppix), 4.1.2 (Gentoo x86), 3.4.4.
Also array with the zero size elements was created.

The test file is attached.


-- 
           Summary: sizeof returns 0 for class
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: limanski at narod dot ru


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

Reply via email to