This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction
- From: "cyan+gcc at compsoc dot nuigalway dot ie" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2006 11:06:35 -0000
- Subject: [Bug fortran/28818] C/Fortran interoperability: variable number of arguments passed from fortran to C causes Illegal instruction
- References: <bug-28818-12983@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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