This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR c++/9278
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Nov 2005 11:33:43 +0100
- Subject: Re: [patch] Fix PR c++/9278
- References: <tkrat.f902b4b4c6903751@igpm.rwth-aachen.de>
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.