This is the mail archive of the gcc-patches@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]

Re: [patch] Fix PR c++/9278


On 11/24/05, Volker Reichelt <reichelt@igpm.rwth-aachen.de> 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.

Have you checked that this doesn't beak code like

template <class T>
void foo(T);

template void foo<void>(void);

?

Richard.


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