Is there a PR open for this code?
Tobias Schlüter
Tobias.Schlueter@physik.uni-muenchen.de
Thu Sep 11 14:00:00 GMT 2008
Dominique Dhumieres wrote:
> Compiling the code with -Wuninitialized gives
>
> alloc_func.f90: In function 'no_leak':
> alloc_func.f90:3: warning: 'i' is used uninitialized in this function
> alloc_func.f90:3: warning: 'n' is used uninitialized in this function
>
> However I think there is a missing check that the shapes of the lhs and
> rhs are the same in
>
> x=(/(i, i=1, n)/)
>
> which should be rejected if n /= 100.
>
> Is there a PR open for that or should I open one?
Is this not caught by bounds-checking at runtime? I don't see how this
could be done at compile-time.
Cheers,
- Tobi
More information about the Fortran
mailing list