This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32724] ICE on statement function in specification part of module
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2007 10:49:34 -0000
- Subject: [Bug fortran/32724] ICE on statement function in specification part of module
- References: <bug-32724-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pault at gcc dot gnu dot org 2007-07-14 10:49 -------
11.3 Modules
....
Constraint: A module specification-part shall not contain a stmt-function-stmt,
an entry-stmt, or a format-stmt.
....
This fixes it
Index: gcc/fortran/parse.c
===================================================================
*** gcc/fortran/parse.c (revision 126598)
--- gcc/fortran/parse.c (working copy)
*************** loop:
*** 1902,1907 ****
--- 1902,1914 ----
break;
+ case ST_STATEMENT_FUNCTION:
+ if (gfc_current_state () == COMP_MODULE)
+ {
+ unexpected_statement (st);
+ break;
+ }
+
default:
break;
}
I cannot do anything about it right now - it'll have to be one one weeks's
time. If anybody wants to run with it, please do.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-07-14 10:49:34
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32724