This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]