------- Comment #4 from pinskia at gcc dot gnu dot org 2006-08-25 14:08 ------- (In reply to comment #3) > (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, ...).
But the Fortran compiler assumes a non variable-args function. It is like invoking a variable-args function via a normal function in another translation unit in C, it is undefined. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28818