This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36749] New: sizeof returns 0 for class
- From: "limanski at narod dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2008 14:01:20 -0000
- Subject: [Bug c++/36749] New: sizeof returns 0 for class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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