c/7654: -Wenum-assignment : Warn if an enum is being assigned a non enum value
Andrew Cagney
ac131313@redhat.com
Thu Jan 2 14:04:00 GMT 2003
> Synopsis: -Wenum-assignment : Warn if an enum is being assigned a non enum value
>
> State-Changed-From-To: open->closed
> State-Changed-By: bangerth
> State-Changed-When: Fri Dec 20 21:50:51 2002
> State-Changed-Why:
> I think your proposal is not very much in the spirit of the
> C language, and I doubt that anyone will want to implement
> it. enums are too much used interchangably with integers
> that such an enum would be useful. Note that enums also
> appear all over the place in system header files!
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7654
The above is largely subjective opinion. Subjective opinion is not a
reason for closing an enhancement request.
Andrew
More information about the Gcc-bugs
mailing list