------- 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