[Bug fortran/36700] [4.3/4.4 Regression] ICE on calling a function

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 2 18:11:00 GMT 2008



------- Comment #1 from burnus at gcc dot gnu dot org  2008-07-02 18:10 -------
With gfortran 4.1 and 4.2:

Error: FUNCTION attribute conflicts with SUBROUTINE attribute in
'initialdiatomicx' at (1)

The same error is also shown for the following - also 4.3/4.4 do so:
  print *, foo()
  call foo()
  end

If one changes the order between call and function declaration, one gets the
following error message:
"Error: 'initialdiatomicx' at (1) has a type, which is not consistent with the
CALL at (2)"


-- 

burnus 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         |2008-07-02 18:10:59
               date|                            |
            Summary|ICE on calling a function   |[4.3/4.4 Regression] ICE on
                   |                            |calling a function


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



More information about the Gcc-bugs mailing list