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: PATCH to warn on use of typename outside of templates


Sometimes people complain that g++ is too permissive.  If you buy into
that then this should be just an error, if this code is reliable.

> Date: Fri, 28 Aug 1998 12:08:51 -0700
> From: Mark Mitchell <mark@markmitchell.com>

> It's not legal to use `typename X::Y' outside of a template; this
> patch causes a warning on such code.
> ! 		  if (!processing_template_decl)
> ! 		    cp_pedwarn ("using `typename' outside of template"); }


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