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]
Other format: [Raw text]

c++/7869: faults typedef redefinition in struct


>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:


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