This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/84122] Incorrect statement sequence in PDT definition
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Feb 2018 18:49:11 +0000
- Subject: [Bug fortran/84122] Incorrect statement sequence in PDT definition
- Auto-submitted: auto-generated
- References: <bug-84122-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84122
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #2 from kargl at gcc dot gnu.org ---
This needs to be addressed in parse.c at lines 3281-3283:
case ST_PROCEDURE:
accept_statement (st);
seen_component = 1;
The accepted statement needs to be checked to see if it
is a type-param-def-stmt. If it is then seen_component
may be 0 and left unchanged. I suspect that we'll need
to add seen_type_param_len and seen_type_param_kind to
skip the error that is printed later.