This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23661] 'print fmt' is unclassifiable statement in gfortran
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2005 23:10:31 -0000
- Subject: [Bug fortran/23661] 'print fmt' is unclassifiable statement in gfortran
- References: <20050831193916.23661.uttamp@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2005-08-31 23:10 -------
What happens is this:
In match_io we have the following code
if (gfc_match_char ('(') == MATCH_NO)
{
/* Treat the non-standard case of PRINT namelist. */
if (k == M_PRINT && (gfc_match_name (name) == MATCH_YES)
&& !gfc_find_symbol (name, NULL, 1, &sym)
&& (sym->attr.flavor == FL_NAMELIST))
This of course doesn't back up correctly in the case where a name is matched
which is not a namelist, then chaos ensues leading to the error you observed.
Since I approved the patch for this, I take it as may responsibility to fix this.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pault at gcc dot gnu dot org
AssignedTo|unassigned at gcc dot gnu |tobi at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-08-31 19:49:03 |2005-08-31 23:10:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23661