[Bug c/14188] New: Suggestion: improve warning message for call through incompatible type

simonmar at microsoft dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 18 10:06:00 GMT 2004


When calling a function through an incompatible type, gcc emits this warning 
message:

   test1.hc:14: warning: function called through a non-compatible type

and replaces the call with a fatal trap.  This is legal, since the behaviour 
in such cases is undefined.  However, it would be useful to the programmer if 
the warning message mentioned that the call had been compiled as a fatal trap.

-- 
           Summary: Suggestion: improve warning message for call through
                    incompatible type
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: ebotcazou at gcc dot gnu dot org
        ReportedBy: simonmar at microsoft dot com
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list