------- Comment #1 from fxcoudert at gcc dot gnu dot org  2005-11-26 19:29 
-------
ICE on that one:
## gfortran ##
 In file foo.f90:21

     I=J
       1
Error: Subroutine 's1' called in lieu of assignment at (1) must be PURE
foo.f90:12: internal compiler error: Segmentation fault

## g95 ##
In file foo.f90:21

     I=J
        1
Error: Subroutine 's1' called in lieu of assignment at (1) must be PURE
## Intel ##
fortcom: Error: foo.f90, line 21: Any procedure referenced in a PURE procedure,
including one referenced via a defined operation or assignmnent, must be
explicitly declared PURE.   [S1]
     I=J
-----^
compilation aborted for foo.f90 (code 1)
## Portland ##
PGF90-W-0155-s1 - must also have PURE attribute (foo.f90: 21)
  0 inform,   1 warnings,   0 severes, 0 fatal for s2
## Sun ##

     I=J
      ^
"foo.f90", Line = 21, Column = 7: ERROR: Procedure "S1" must be pure or
elemental, because it is referenced in a pure subprogram.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-26 19:29:39
               date|                            |
            Summary|better diagnostic needed    |ICE after error message


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25059

Reply via email to