[Bug fortran/55692] New: ICE on incorrect use of ASSOCIATED function

gilbert.scott at easynet dot co.uk gcc-bugzilla@gcc.gnu.org
Fri Dec 14 16:56:00 GMT 2012


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

             Bug #: 55692
           Summary: ICE on incorrect use of ASSOCIATED function
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gilbert.scott@easynet.co.uk


$ gfortran --version
GNU Fortran (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)

$ cat testprog.f95

PROGRAM TESTPROG
TYPE T
   INTEGER :: I
   REAL :: R
END TYPE T
TYPE(T), POINTER :: P1,P2
LOGICAL :: L(2)
ALLOCATE (P1)
ALLOCATE (P2)
L = ASSOCIATED([P1,P2]) ! Error: intrinsic function ASSOCIATED is not ELEMENTAL
END

$ gfortran -Wall testprog.f95 -o testprog
f951: internal compiler error: in gfc_check_associated, at fortran/check.c886
Please submit a full bug report,

?! Oh, I was expecting a polite error message :)



More information about the Gcc-bugs mailing list