This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Request of new __attribute__ for switch statements (eliminationof the bounds check)
- From: Michael Matz <matz at suse dot de>
- To: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Cc: Kevin Lawton <kevinlawton2001 at yahoo dot com>, <gcc at gcc dot gnu dot org>
- Date: Tue, 15 Oct 2002 16:25:43 +0200 (CEST)
- Subject: Re: Request of new __attribute__ for switch statements (eliminationof the bounds check)
Hi,
On Tue, 15 Oct 2002, Jamie Lokier wrote:
> [... strict enum proposal ...]
>
> (It would be appropriate to add a warning when an enum with this
> attribute is converted to an integer).
That's not the problematic direction. I can't see why converting such an
enum to an integer would be dangerous. But converting _to_ such an enum
should get a warning.
Ciao,
Michael.