[Bug fortran/31229] kind parameter in function declaration fails to find use-associated parameters
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat May 26 23:24:00 GMT 2007
------- Comment #2 from burnus at gcc dot gnu dot org 2007-05-26 23:24 -------
The problem is the resolution happens too early. In decl.c the function is
matched and immediately the kind parameter is resolved:
gfc_match_kind_spec (gfc_typespec *ts)
n = gfc_match_init_expr (&e); // "has not been declared or is a variable"
msg = gfc_extract_int (e, &ts->kind); // "Constant expression required"
For character lengths, it is easier as length is an expr and not as typespec's
kind an enum.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31229
More information about the Gcc-bugs
mailing list