This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug?


> > And I think the compiler should give a warning or an error
> > at substituting 3 into the variable "a".
>
> While I agree that would be a nice diagnostic, I'd guess it is
> probably tricky to implement. Do you know of any compilers that do
> so? From your description, apparently the Intel compiler doesn't.
>

absoft compiler also does not give any warning either.

$f90 -g -Rb -Rc -Rs -Rp -m2 -et -V test.f90
f90: Copyright Absoft Corporation 1994-2002; Absoft Pro FORTRAN Version 8.0
f90fe: 12 source lines
f90fe: 0 Errors, 0 Warnings, 0 Other messages, 0 ANSI

$./a.out
   9.00000000000000


raju

-- 
http://kamaraju.googlepages.com/cornell-bazaar
http://groups.google.com/group/cornell-bazaar/about


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