From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22643 invoked by alias); 11 Sep 2006 01:34:32 -0000 Received: (qmail 22606 invoked by uid 48); 11 Sep 2006 01:34:25 -0000 Date: Mon, 11 Sep 2006 01:34:00 -0000 Message-ID: <20060911013425.22605.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/27954] ICE on garbage in DATA statement In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle at gcc dot gnu dot org" 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 X-SW-Source: 2006-09/txt/msg00862.txt.bz2 List-Id: ------- Comment #10 from jvdelisle at gcc dot gnu dot org 2006-09-11 01:34 ------- Another example showing this is not specific to DATA statements, but is related to parsing the initilizer. program FOO character*20 Y /'Abcdef'/ garbage end program FOO $ gfc pr27954.f90 In file pr27954.f90:2 character*20 Y /'Abcdef'/ garbage 1 Error: Syntax error in data declaration at (1) In file pr27954.f90:3 end program FOO 1 Internal Error at (1): gfc_get_default_type(): Bad symbol Its interesting that the syntax error is caught, but the following END statement gets mangled. -- jvdelisle at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-06-16 02:23:27 |2006-09-11 01:34:24 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27954