next enum bit
Jeffrey A Law
law@cygnus.com
Sun Aug 30 16:41:00 GMT 1998
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
More information about the Gcc-patches
mailing list