This is the mail archive of the gcc-prs@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]

c/505: Allows same identifier for enum type and #define



>Number:         505
>Category:       c
>Synopsis:       Allows same identifier for enum type and #define
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 04 03:36:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Graham Rollings
>Release:        egcs-1.1.2
>Organization:
>Environment:
Defninite Linux v7.0 (Redhat v6.1 ?)
>Description:
typedef enum {
identifier
};

#define identifier blah

It allows this without complaining, using no command switches
other than -o -lfl
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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