public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41922]  New: Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars
@ 2009-11-03  9:02 burnus at gcc dot gnu dot org
  2010-04-18 16:44 ` [Bug fortran/41922] " dominiq at lps dot ens dot fr
  2010-05-12 12:43 ` dfranke at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-11-03  9:02 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/41922] Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars
  2009-11-03  9:02 [Bug fortran/41922] New: Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars burnus at gcc dot gnu dot org
@ 2010-04-18 16:44 ` dominiq at lps dot ens dot fr
  2010-05-12 12:43 ` dfranke at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-04-18 16:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominiq at lps dot ens dot fr  2010-04-18 16:44 -------
Confirmed. Related to pr24978. Should probably be marked as blocking  pr31392
and pr33056.


-- 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/41922] Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars
  2009-11-03  9:02 [Bug fortran/41922] New: Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars burnus at gcc dot gnu dot org
  2010-04-18 16:44 ` [Bug fortran/41922] " dominiq at lps dot ens dot fr
@ 2010-05-12 12:43 ` dfranke at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-12 12:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dfranke at gcc dot gnu dot org  2010-05-12 12:43 -------
With current trunk (r159282), we have a locus - but not the right one:
pr41922.f:11.72:

      end                                                               
                                                                        1
Error: Overlapping unequal initializers in EQUIVALENCE at (1)

(In reply to comment #0)
> Using the commented version instead, it works:
> 
>       data cstore/2*4/
>                      1
> Error: Overlapping unequal initializers in EQUIVALENCE at (1)

IMO, this should point to the EQUIVALENCE, not one of the involved DATA
statements.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-12 12:43:14
               date|                            |


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-12 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03  9:02 [Bug fortran/41922] New: Diagnostic: No location shown for overlappingly initialized EQUIVALENCEd character vars burnus at gcc dot gnu dot org
2010-04-18 16:44 ` [Bug fortran/41922] " dominiq at lps dot ens dot fr
2010-05-12 12:43 ` dfranke at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).