--- Comment #3 from limanski at narod dot ru 2008-07-07 14:29 ---
(In reply to comment #2)
> The problem is one of diagnostic: the code should be just rejected because Foo
> is an incomplete type.
>
But the instanse of Foo can be created and both sizeof(Foo) and sizeof(foo) a
--- Comment #1 from limanski at narod dot ru 2008-07-07 14:02 ---
Created an attachment (id=15870)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15870&action=view)
The test file for the bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36749
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