hi,

in the following code:

func.c <http://gcc.1065356.n5.nabble.com/file/n996589/func.c>  
i tried to cast an int(int,int) function into an int(int) function an got
the gcc warning and note:

    func.c:13:32: warning: function called through a non-compatible type
[enabled by default]
    func.c:13:32: note: if this code is reached, the program will abort

and when trying to run i get:

    Illegal instruction (core dumped)

but if i compile this file with a .cpp ending with the gcc compiler it works
OK.
can anyone explain the problem of the compiler in the .c case?



--
View this message in context: 
http://gcc.1065356.n5.nabble.com/function-cast-leads-to-gcc-abort-command-tp996589.html
Sent from the gcc - bugs mailing list archive at Nabble.com.

Reply via email to