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/55692] New: ICE on incorrect use of ASSOCIATED function


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


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