This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44869] [OOP] Missing TARGET check - and wrong code or accepts-invalid?
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2010 08:26:35 -0000
- Subject: [Bug fortran/44869] [OOP] Missing TARGET check - and wrong code or accepts-invalid?
- References: <bug-44869-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from janus at gcc dot gnu dot org 2010-07-11 08:26 -------
(In reply to comment #6)
> The runtime segfault persist.
It seems this segfault comes from the call to 'self%assert' in 'test_a'.
The dump shows
self->$vptr->assert->assert_int ((struct class$test_case *) self, &C.1978,
&C.1979, &C.1980, &"generic_tbp.f90"[1]{lb: 1 sz: 1}, &"purposely
failed"[1]{lb: 1 sz: 1}, 15, 16);
which looks ok.
The problem seems to be that the generic TBPs in the vtab are not initialized
properly. The dump contains the correct initialization code for the specific
TBPs, but the init for the generics seems to be missing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44869