This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54243] New: f951: internal compiler error: Segmentation fault (trying to compile errorneous code)
- From: "slayoo at staszic dot waw.pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Aug 2012 14:50:14 +0000
- Subject: [Bug fortran/54243] New: f951: internal compiler error: Segmentation fault (trying to compile errorneous code)
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54243
Bug #: 54243
Summary: f951: internal compiler error: Segmentation fault
(trying to compile errorneous code)
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: slayoo@staszic.waw.pl
With Deabian's gcc-snapshot gfortran (4.8.0 20120714) trying to compile to code
below:
module aqq_m
type :: aqq_t
contains
procedure :: aqq_init
end type
contains
subroutine aqq_init(this)
class(aqq_t) :: this
end subroutine
end module
program bug2
use aqq_m
class(aqq_t) :: aqq
call aqq%aqq_init
end program
I get:
$ /usr/lib/gcc-snapshot/bin/gfortran -std=f2008 -ffree-form bug2.f
bug2.f:24.21:
class(aqq_t) :: aqq
1
Error: CLASS variable 'aqq' at (1) must be dummy, allocatable or pointer
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.
HTH,
Sylwester