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 fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction



------- Comment #3 from cyan+gcc at compsoc dot nuigalway dot ie  2006-08-25 11:06 -------
(In reply to comment #2)
> the Fortran program
> is not calling a var-args C function,

I don't understand what you mean. The fortran code calls the test function,
which is written in C (called test_ due to name mangling). test_ is indeed a
variable-args function:
void test_(int *test, ...).

Also, this code works as expected on 32-bit x86 machines.


-- 


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


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