[Bug c/30427] ~ vector float is accepted

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 9 08:31:00 GMT 2007



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-07-09 08:31 -------
Patch (which needs testing):
Index: c-typeck.c
===================================================================
--- c-typeck.c  (revision 126424)
+++ c-typeck.c  (working copy)
@@ -2825,7 +2825,9 @@
       break;

     case BIT_NOT_EXPR:
-      if (typecode == INTEGER_TYPE || typecode == VECTOR_TYPE)
+      if (typecode == INTEGER_TYPE
+         || (typecode == VECTOR_TYPE
+             && !VECTOR_FLOAT_TYPE_P (TREE_TYPE (arg))))
        {
          if (!noconvert)
            arg = default_conversion (arg);


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-07-09 08:31:08
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30427



More information about the Gcc-bugs mailing list