This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/505: Allows same identifier for enum type and #define
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/505: Allows same identifier for enum type and #define
- From: Graham_R at Freenet dot co dot uk
- Date: 4 Sep 2000 10:35:42 -0000
- Reply-To: Graham_R at Freenet dot co dot uk
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, Graham_R@Freenet.co.uk
>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: