This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: next enum bit
- To: mark at markmitchell dot com
- Subject: Re: next enum bit
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 30 Aug 1998 16:53:36 -0600
- cc: brendan at cygnus dot com, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199808281954.MAA01429@smtp.earthlink.net>you write:
>
> Brenan --
>
> Here's a patch for part of the problem, which has nothing to do with
> templates. Even the C front-end will crash on (the illegal):
>
> enum E { a, b = (enum E) a };
>
> Jeff, OK?
>
> --
> Mark Mitchell mark@markmitchell.com
> Mark Mitchell Consulting http://www.markmitchell.com
>
> Fri Aug 28 12:52:18 1998 Mark Mitchell <mark@markmitchell.com>
>
> * convert.c (convert_to_integer): Issue an error on conversions to
> incomplete types.
Seems reasonable. I guess if we ever needed to allow this kind of
thing for a particular language we would have to move the check into
the language dependent files.
jeff