public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/64933] New: ASSOCIATE on a character variable does not allow substring expressions
@ 2015-02-04 10:22 olivier.marsden at ecmwf dot int
  2015-02-04 10:24 ` [Bug fortran/64933] " olivier.marsden at ecmwf dot int
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: olivier.marsden at ecmwf dot int @ 2015-02-04 10:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64933

            Bug ID: 64933
           Summary: ASSOCIATE on a character variable does not allow
                    substring expressions
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: olivier.marsden at ecmwf dot int

Created attachment 34662
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34662&action=edit
gfortran 5.0  ICE output for test case

The following program is generating an ICE with gcc-5-20150201, and 
fails with 
ASSOCIATE(should_work=>char_var)                               
Error: Associate-name 'should_work' at (1) is used as array
for gcc version 4.8.1 20130909 [gcc-4_8-branch revision 202388] (SUSE Linux)

The ICE output is attached.

program test_this
implicit none

character(len=15) :: char_var
ASSOCIATE(should_work=>char_var)

should_work = "test succesful"

print *, should_work(5:14)

END ASSOCIATE

end program


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

end of thread, other threads:[~2015-02-13 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04 10:22 [Bug fortran/64933] New: ASSOCIATE on a character variable does not allow substring expressions olivier.marsden at ecmwf dot int
2015-02-04 10:24 ` [Bug fortran/64933] " olivier.marsden at ecmwf dot int
2015-02-13 13:56 ` dominiq at lps dot ens.fr
2015-02-13 15:36 ` pault at gcc dot gnu.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).