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/32724] ICE on statement function in specification part of module



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


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