http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57978

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Joost VandeVondele from comment #6)
> for 4.8 gives a segfault

Which has seemingly be fixed in GCC 4.9.


> for 4.9 reports:
>           allocate (diffdays, source=NO_DAY)
>                     1
> Error: Array specification required in ALLOCATE statement at (1)

I think the compiler is right that your code is invalid Fortran 2003.

However, if NO_DAY is an array, it is valid Fortran 2008. That's tracked in
PR44672

Reply via email to