From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4181 invoked by alias); 31 Aug 2005 23:10:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4025 invoked by uid 48); 31 Aug 2005 23:10:31 -0000 Date: Wed, 31 Aug 2005 23:11:00 -0000 Message-ID: <20050831231031.4024.qmail@sourceware.org> From: "tobi at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050831193916.23661.uttamp@us.ibm.com> References: <20050831193916.23661.uttamp@us.ibm.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/23661] 'print fmt' is unclassifiable statement in gfortran X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03682.txt.bz2 List-Id: ------- 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