[Bug c/17855] modification of function return not diagnosed

jsm28 at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 6 08:40:00 GMT 2004


------- Additional Comments From jsm28 at gcc dot gnu dot org  2004-10-06 08:40 -------
This does need to be accepted (where warning and compiling into an abort is
one valid form of accepting) in case it is not executed, cf. DR#109:

   A conforming implementation must not fail to translate a strictly
   conforming program simply because *some* possible execution of that
   program would result in undefined behavior.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu dot org
OtherBugsDependingO|                            |16989
              nThis|                            |


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



More information about the Gcc-bugs mailing list