c/7654: -Wenum-assignment : Warn if an enum is being assigned a non enum value

Andrew Cagney ac131313@redhat.com
Thu Jan 2 14:06:00 GMT 2003


The following reply was made to PR c/7654; it has been noted by GNATS.

From: Andrew Cagney <ac131313@redhat.com>
To: bangerth@dealii.org, ac131313@redhat.com, gcc-bugs@gcc.gnu.org,
	gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/7654: -Wenum-assignment : Warn if an enum is being assigned
 a non enum value
Date: Thu, 02 Jan 2003 14:04:38 +0000

 > 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-prs mailing list