[Bug fortran/41922] New: Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 3 09:02:00 GMT 2009


Reported at http://gcc.gnu.org/ml/fortran/2009-11/msg00011.html


In the following program, the error location is not shown:

<During initialization>

Error: Overlapping unequal initializers in EQUIVALENCE at (1)


Using the commented version instead, it works:

      data cstore/2*4/
                     1
Error: Overlapping unequal initializers in EQUIVALENCE at (1)



      Subroutine RestoreR8Run()
      Implicit NONE
      Integer   ISTORE
      Real      XSTORE
!      integer   CSTORE(2)
!      data cstore/2*4/
      character   CSTORE(8)
      data cstore/8*' '/
      data istore/0/
      EQUIVALENCE (CSTORE(1),XSTORE,ISTORE)
      end


-- 
           Summary: Diagnostic: No location shown for overlappingly
                    initialized EQUIVALENCEd character vars
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list