Pelles C forum

Pelles C => Bug reports => Topic started by: Romashka on May 04, 2009, 11:51:37 AM

Title: documentation of /Ze option is incomplete
Post by: Romashka 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:
typedef struct node node;

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


Yes, I know that I can just use
typedef struct node {
    struct node *prev;
    struct node *next;
    void *value;
} node;

but this request is about documentation, not behaviour.
Title: Re: documentation of /Ze option is incomplete
Post by: Pelle on May 04, 2009, 07:18:09 PM
OK, thanks, I will update the help file.