[Bug fortran/51292] RESULT var with -finit-local-zero -fno-automatic results in error
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Sat Mar 22 20:43:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51292
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2014-03-22
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The code in comment 0 compiles for me with 4.8.2 and trunk. It is rejected by
4.7.4 with
pr51292.f90:5.27:
function bar (a) result (h)
1
Error: Function result 'h' at (1) cannot have an initializer
(twice, changed to only once between r190090 and r195731). The error
disappeared between r195931 and r196108.
Could this PR be closed as fixed?
More information about the Gcc-bugs
mailing list