This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

c/6861: Conflicting type name allowed



>Number:         6861
>Category:       c
>Synopsis:       Conflicting type name allowed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 29 14:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Steve Cornett
>Release:        3.1
>Organization:
>Environment:
all
>Description:
Two conflicting types are incorrectly allowed in the same declaration.  The sample code below ought to trigger an error, but is incorrectly accepted.

typedef unsigned char T;
T short a;
>How-To-Repeat:
gcc -c bug.c
>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]