[Bug c/25019] Promoting long to long long generates no warning and/or incorrect result.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 24 16:50:00 GMT 2005



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-11-24 16:50 -------
a=1<<b;
is done in the type of b and not of type of a so this is invalid as the
behavior is undefined.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list