[Bug fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction

2006-08-25 Thread kargl at gcc dot gnu dot org
--- Comment #5 from kargl at gcc dot gnu dot org 2006-08-25 16:38 --- > 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, ...). For

[Bug fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction

2006-08-25 Thread pinskia at gcc dot gnu dot org
--- 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 writte

[Bug fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction

2006-08-25 Thread cyan+gcc at compsoc dot nuigalway dot ie
--- 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 t

[Bug fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction

2006-08-24 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-25 06:27 --- This is not a bug as the code you are using is undefined as the Fortran program is not calling a var-args C function, it is a Fortran function which always not a var-args function. -- pinskia at gcc dot gnu dot

[Bug fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction

2006-08-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-23 15:18 --- Technicially this is not a bug because C/Fortran interoperability is undefined. For Fortran 2003, there is a way to interopere between the two langauges but I don't think var_args are supported. -- http://gcc.g