c++/7869: faults typedef redefinition in struct

algrant@myrealbox.com algrant@myrealbox.com
Mon Sep 9 11:09:00 GMT 2002


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



More information about the Gcc-bugs mailing list