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]

Re: g77 of egcs-1.0.2/1.0.3a returns exit code 1 for argument type mismatch


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.  


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