This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc++/16826] New: cannot create instance variable of same type as class
- From: "ratmice at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2004 02:03:32 -0000
- Subject: [Bug objc++/16826] New: cannot create instance variable of same type as class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
as a .mm file, this fails to compile with
bar.mm:5: error: ISO C++ forbids declaration of `Bar' with no type
bar.mm:5: error: expected `;' before '*' token
#include <objc/Object.h>
@interface Bar : Object
{
Bar *food;
}
@end
@implementation Bar
@end
--
Summary: cannot create instance variable of same type as class
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: objc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ratmice at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16826