Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > compiler/linker...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 8168 of 8551
Post > Topic >>

compiler/linker flags to abort array assignment (non-standard) use

by Fei Liu <fei.liu@[EMAIL PROTECTED] > Apr 23, 2008 at 01:24 PM

Hello Group,
   I am trying to come up with a list of compiler/linker options so that 
when the following code is run, a run time failure is generated. Or at 
least a compile time diagnosis is re****ted.

   The target compiler is Intel ifort. I would like to catch as many 
non-standard coding practice as possible at both compile time and run
time.

   I currently use '-std -warn all -WB -Winline -traceback' but it does 
not catch the error in the following code.

    Thanks,

program test

     integer, dimension(:), allocatable :: x

     allocate(x(10))

     call use_array(x)

contains

     subroutine use_array(x)
     integer, dimension(:), intent(in) :: x

     integer, dimension(20) :: y

     y = x
     end subroutine use_array
end program
 




 6 Posts in Topic:
compiler/linker flags to abort array assignment (non-standard) u
Fei Liu <fei.liu@[EMAI  2008-04-23 13:24:36 
Re: compiler/linker flags to abort array assignment (non-standar
"Michael Metcalf&quo  2008-04-23 17:39:24 
Re: compiler/linker flags to abort array assignment (non-standar
Fei Liu <fei.liu@[EMAI  2008-04-23 13:53:14 
Re: compiler/linker flags to abort array assignment (non-standar
Gordon Sande <g.sande@  2008-04-23 18:30:53 
Re: compiler/linker flags to abort array assignment (non-standar
Tobias Burnus <burnus@  2008-04-23 11:33:28 
Re: compiler/linker flags to abort array assignment (non-standar
Fei Liu <fei.liu@[EMAI  2008-04-23 15:37:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:23:00 CDT 2008.