public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55901] New: [OOP] type is (character(len=*)) misinterpreted as array
@ 2013-01-07 19:37 anlauf at gmx dot de
  2013-04-08 17:13 ` [Bug fortran/55901] " pdande1 at dow dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: anlauf at gmx dot de @ 2013-01-07 19:37 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55901
           Summary: [OOP] type is (character(len=*)) misinterpreted as
                    array
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: anlauf@gmx.de


Hi,

this small example is IMO wrongly rejected:

module gfcbug123
  implicit none
  type myobj
     class(*), allocatable :: x
   contains
     procedure :: print
  end type myobj
contains
  subroutine print(this)
    class(myobj) :: this
    select type (x => this% x)
    type is (character(len=*))
       print *, "String: ", x(1:len(x))
    end select
  end subroutine print
end module gfcbug123

% gfc-trunk gfcbug123.f90 -c
gfcbug123.f90:12.30:

    type is (character(len=*))
                              1
Error: Associate-name '__tmp_CHARACTER_0_1' at (1) is used as array


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

end of thread, other threads:[~2015-03-25  9:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-07 19:37 [Bug fortran/55901] New: [OOP] type is (character(len=*)) misinterpreted as array anlauf at gmx dot de
2013-04-08 17:13 ` [Bug fortran/55901] " pdande1 at dow dot com
2013-04-08 17:29 ` anlauf at gmx dot de
2013-04-08 17:41 ` pdande1 at dow dot com
2013-04-08 18:16 ` anlauf at gmx dot de
2013-09-18 11:51 ` janus at gcc dot gnu.org
2014-12-04 21:13 ` anlauf at gmx dot de
2014-12-09  9:02 ` pault at gcc dot gnu.org
2014-12-14 21:16 ` paul.richard.thomas at gmail dot com
2014-12-14 21:18 ` paul.richard.thomas at gmail dot com
2015-01-06 19:50 ` anlauf at gmx dot de
2015-01-07 13:16 ` paul.richard.thomas at gmail dot com
2015-01-07 16:09 ` vehre at gmx dot de
2015-01-18 12:22 ` pault at gcc dot gnu.org
2015-03-24 12:19 ` vehre at gcc dot gnu.org
2015-03-25  9:59 ` vehre 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).