public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/49430] New: ICE with allocatable length character in interface block
@ 2011-06-15 23:14 shadowblade at altern dot org
  2011-06-15 23:44 ` [Bug fortran/49430] " burnus at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: shadowblade at altern dot org @ 2011-06-15 23:14 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE with allocatable length character in interface
                    block
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: shadowblade@altern.org


The following code:

module mod_test3
    abstract interface
        function messageProcedure(code) result(message)
            integer, intent(in) :: code
            character(:), allocatable :: message
        end function
    end interface

    type, public :: ctype
        procedure(messageProcedure), pointer, nopass :: getMessage => null()
    end type

contains
    subroutine asub(this, num)
        class(ctype), intent(in) :: this
        integer, intent(in) :: num
        character(:), allocatable :: message

        if(associated(this%getMessage)) message = this%getMessage(num)
    end subroutine
end module


causes this:
‘
In function ‘asub’:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


gfortran version:
Using built-in specs.
COLLECT_GCC=gfortran47
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin10.6.0/4.7.0/lto-wrapper
Target: x86_64-apple-darwin10.6.0
Configured with: ../gcc-4.7-20110611/configure --program-suffix=47
--prefix=/usr/local/ : (reconfigured) ../gcc-4.7-20110611/configure
--program-suffix=47 --prefix=/usr/local/ --enable-lto
--enable-languages=c,c++,objc,obj-c++,fortran
Thread model: posix
gcc version 4.7.0 20110611 (experimental) (GCC)


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

end of thread, other threads:[~2012-09-25 16:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15 23:14 [Bug fortran/49430] New: ICE with allocatable length character in interface block shadowblade at altern dot org
2011-06-15 23:44 ` [Bug fortran/49430] " burnus at gcc dot gnu.org
2011-06-21 19:41 ` janus at gcc dot gnu.org
2011-06-21 20:22 ` janus at gcc dot gnu.org
2011-06-21 21:19 ` janus at gcc dot gnu.org
2011-06-21 21:37 ` janus at gcc dot gnu.org
2011-06-27 17:05 ` [Bug fortran/49430] [F03] " janus at gcc dot gnu.org
2012-05-13 11:21 ` burnus at gcc dot gnu.org
2012-05-13 11:38 ` burnus at gcc dot gnu.org
2012-09-25 16:15 ` dtemirbulatov at gmail dot com
2012-09-25 16:17 ` dtemirbulatov at gmail dot com

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).