http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52158
Bug #: 52158
Summary: Regression on character function with gfortran 4.7
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
A build from a snapshot of the development branch as of February 4 appears to
have a regression on deferred-length character functions. The text below shows
a test that compiles with gcc 4.6.2 but not with 4.7.
$ cat character_function.F90
module foo_class
implicit none
type foo
contains
procedure :: bar
end type
contains
function bar(this)
class(foo) :: this
character(:), allocatable :: bar
end function
end module
$ /opt/local/bin/gfortran-mp-4.6 -c character_function.F90
$ /opt/local/bin/gfortran-mp-4.7 -c character_function.F90
character_function.F90:9.22:
class(foo) :: this
1
Error: Deferred-length character component 'bar' at (1) is not yet
supported
$ /opt/local/bin/gfortran-mp-4.7 --version
GNU Fortran (GCC) 4.7.0 20120204 (experimental)
Damian