This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31251] Non-integer character length leads to segfault
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2007 03:13:15 -0000
- Subject: [Bug fortran/31251] Non-integer character length leads to segfault
- References: <bug-31251-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2007-05-02 04:13 -------
Created an attachment (id=13470)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13470&action=view)
Possible patch for this problem
The double error comes from trying to match_type_spec for a variable
declaration and then later for the prefix for a function declaration. It does
this even though there has clearly been a syntax error.
I am not able to reproduce a segfault. However, this patch eliminates the
double error message. Could someone verify that they still get a segfault
without this patch and then try with the patch to see what happens.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31251