NO

Author Topic: documentation of /Ze option is incomplete  (Read 2406 times)

Romashka

  • Guest
documentation of /Ze option is incomplete
« on: May 04, 2009, 11:51:37 AM »
Help page '/Ze option (POCC)' does not mention that redefinition of typedef'ed type is allowed with this option.
The following code produces error #2121: Redeclaration of 'node' when compiled without /Ze:
Code: [Select]
typedef struct node node;

typedef struct node {
    node *prev;
    node *next;
    void *value;
} node;

Yes, I know that I can just use
Code: [Select]
typedef struct node {
    struct node *prev;
    struct node *next;
    void *value;
} node;
but this request is about documentation, not behaviour.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: documentation of /Ze option is incomplete
« Reply #1 on: May 04, 2009, 07:18:09 PM »
OK, thanks, I will update the help file.
/Pelle