This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc++/16826] New: cannot create instance variable of same type as class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]