public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36371]  New: [4.3/4.4 Regression] Wrong locus for errors in DATA statement
@ 2008-05-29 14:19 dominiq at lps dot ens dot fr
  2008-05-29 21:06 ` [Bug fortran/36371] " burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-05-29 14:19 UTC (permalink / raw)
  To: gcc-bugs

The first test case in PR36319 gives now:

    character(len=3, kind=4), parameter, dimension(3) :: mychar = [ "abc", "def
                                                                  1
Error: Incompatible types in assignment at (1); attempted assignment of
CHARACTER(4) to CHARACTER(1)

which does not look right. The following codelet from FX:

program chkdata
  character(len=3), parameter :: mychar(3) = [ "abc", "def", "ghi" ]
  integer :: c(5)
  data c / mychar(1), mychar(2), mychar(3), mychar(1), mychar(2) /
end program chkdata

gives with gfortran 4.3/4.4:

  character(len=3), parameter :: mychar(3) = [ "abc", "def", "ghi" ]
                                             1
Error: Incompatible types in assignment at (1); attempted assignment of
CHARACTER(1) to INTEGER(4)

but with gfortran 4.2:

  data c / mychar(1), mychar(2), mychar(3), mychar(1), mychar(2) /
                1
Error: Syntax error in DATA statement at (1)

pointing to the right locus of the error.


-- 
           Summary: [4.3/4.4 Regression] Wrong locus for errors in DATA
                    statement
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


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


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

end of thread, other threads:[~2008-09-03 21:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-29 14:19 [Bug fortran/36371] New: [4.3/4.4 Regression] Wrong locus for errors in DATA statement dominiq at lps dot ens dot fr
2008-05-29 21:06 ` [Bug fortran/36371] " burnus at gcc dot gnu dot org
2008-06-07 16:17 ` pault at gcc dot gnu dot org
2008-06-24 21:46 ` pault at gcc dot gnu dot org
2008-09-03 12:28 ` [Bug fortran/36371] [4.3 " domob at gcc dot gnu dot org
2008-09-03 21:08 ` pault 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).