[patch] Fix PR c++/9278

Nathan Sidwell nathan@codesourcery.com
Fri Nov 25 10:19:00 GMT 2005


Volker Reichelt wrote:
> The C++ frontend fails to diagnose invalid code like the following:
> 
>   typedef void VOID;
>   int foo(VOID);
> 
> The patch below fixes this by not allowing typedef-names for 'void'
> in parameter lists.
> 
> Bootstrapped and regtested on i686-pc-linux-gnu.
> Ok for mainline?
ok

> What about the 4.1 branch?
no.  It's not a regression and it's a minor std conformance issue.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gcc-patches mailing list