RE: [sv-bc] enumerated variable used with an equality operator

From: Brad Pierce <Brad.Pierce@synopsys.com>
Date: Thu Mar 20 2014 - 17:37:23 PDT
This is similar to http://www.eda.org/svdb/view.php?id=4708 and the 6.19.3 example

   Colors c;
   c = green;
   if ( 1 == c ) // OK. c is auto-cast to integer

although in that example only one of the two operands has an enumeration type before auto-casting.

Replying to http://www.eda.org/sv-bc/hm/11530.html .

-- Brad


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 20 17:37:45 2014

This archive was generated by hypermail 2.1.8 : Thu Mar 20 2014 - 17:37:50 PDT