[Bug fortran/42934] Bogus variable_check
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Tue Jan 24 12:39:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42934
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-24 11:41:21 UTC ---
> The following example shows this: For LOC(f) it prints the address of the
> function, for LOC(f()) the result of the function call; but it fails for
This is the case for gfortran 4.4 and 4.5, but 4.6 and trunk gives the
following error
pr42934.f90:14.13:
print *, loc(f()) ! print 0
1
Error: 'x' argument of 'loc' intrinsic at (1) must be a variable
What result do you expect? Is it a 4.6/4.7 regression?
More information about the Gcc-bugs
mailing list