This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77 of egcs-1.0.2/1.0.3a returns exit code 1 for argument type mismatch
- To: sasaki at tyo dot sci dot jri dot co dot jp
- Subject: Re: g77 of egcs-1.0.2/1.0.3a returns exit code 1 for argument type mismatch
- From: N8TM at aol dot com
- Date: Wed, 29 Jul 1998 09:07:51 EDT
- Cc: egcs-bugs at cygnus dot com
In a message dated 7/29/98 4:04:37 AM Pacific Daylight Time,
sasaki@tyo.sci.jri.co.jp writes:
> subroutine AA( a,b,c,i )
> real*8 a,b,c
> integer i
> C
> C
> return
> end
> C
> subroutine BB( a,b,c,d )
> real*8 a,b,c,d
> C
> call AA( a,b,c,d )
This clearly will not work on some platforms supported by egcs, so I think
it's reasonable for the compiler to treat it as a fatal error. The
traditional way to do this would be to have the receiving function store the
argument in a real which is equivalenced to an integer. This is required to
compile, but still has non-portable implications.