This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7869: faults typedef redefinition in struct
- From: algrant at myrealbox dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 9 Sep 2002 17:54:31 -0000
- Subject: c++/7869: faults typedef redefinition in struct
- Reply-to: algrant at myrealbox dot com
>Number: 7869
>Category: c++
>Synopsis: faults typedef redefinition in struct
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 09 10:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Al Grant
>Release: 3.1
>Organization:
>Environment:
SunOS bsun22 5.5.1 Generic_103640-31 sun4u sparc SUNW,Ultra-5_10
>Description:
typedef int T; struct S { typedef T T; };
faulted with
declaration of `typedef int S::T'
changes meaning of `T' from `typedef int T'
but should be legal by 7.1.3. Also faulted:
typedef int T;
struct S { typedef T Unused; typedef int T; };
not faulted if the typedef of Unused is removed.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: