This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31251] Non-integer character length leads to segfault



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]