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]

Re: C++ typedef redefinitions and templates


"Martin v. Loewis" wrote:
> 1999-05-28  Mark Mitchell  <mark@codesourcery.com>
> 
>         * decl.c (add_binding): Don't complain about a redeclaration of a
>         semantically identical typedef in a local scope.
> 
> must be reverted...

Please read carefully:

Proposed Resolution (10/99): Change 7.1.3 dcl.typedef paragraph 2 from "In a given scope" to "In a given non-class scope." 

Whatever "local scope" means in the above ChangeLog entry, we must take
care to allow typedef redeclarations in namespace and block scope.

Jens Maurer

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