This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250438 - Support for anonymous structs in C
Summary: Support for anonymous structs in C
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 08:56 UTC by asoukhman
Modified: 2015-03-22 10:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description asoukhman 2015-02-16 08:56:39 UTC
Asking to support anonymous structs in C (looks like inheritance in C++).

e.g.

typedef struct Base {
  int i, j;
} Base;

struct Other {
  Base;
  
  int k, l;
};


Struct Other contains i, j, k, l

Thanks :).
Comment 1 petrk 2015-03-22 09:26:15 UTC
Just a note: has to be compiled with -fplan9-extensions or -fms-extensions if using GCC or LLVM Clang
Comment 2 asoukhman 2015-03-22 10:30:34 UTC
(In reply to petrk from comment #1)
> Just a note: has to be compiled with -fplan9-extensions or -fms-extensions
> if using GCC or LLVM Clang

I compile the project files using gcc with -fms-extensions.