[PATCH] PR fortran/91942 -- Inquiry parameter cannot be IO tag
The attached patch has been tested on x86_64-*-freebsd.
OK to commit?
If an inquiry parameter cannot appear in a file IO statement
as a tag (see new testcase). The patch re-arranges the code
to prevent an ICE due to 'result->symtree = NULL;', checks
for a constant in a variable definition context, and takes
a different exit route to get better error messages.
* io.c (match_vtag): Check for non-NULL result->symtree.
(match_out_tag): Check for invalid constant due to inquiry parameter.
(match_filepos): Instead of a syntax error, go to cleanup to get better