This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Undefined reference to TBP


Thanks Tobias for confirming the bug.
I've filed bug 44064 and 44065
for the ICE when merging the two files and the linking problem when the two files aren't merged. I might've file just one, though since the root may be the same.

Cheers,
Pierre



----- Original Message ----
From: Tobias Burnus <burnus@net-b.de>
To: P C <pchwood@yahoo.com>
Cc: fortran@gcc.gnu.org
Sent: Mon, May 10, 2010 4:45:34 PM
Subject: Re: Undefined reference to TBP

On 05/10/2010 04:33 PM, P C wrote:
> It looks like a procedure bound to an attribute of a super class is not resolved in the subclass. The test case below doesn't go pass through the linker.
> Would this issue be fixed in the dev or experimental build?
> If this issue is not known , I will report it in bugzilla.
>  

I think the issue is not known and it occurs with the (almost) latest
4.6 build of today.
Thus: Please fill a bug report in Bugzilla.

By the way, if one puts both files into one, one does not get a
link-time error but a segfault:

hjf.f90:37:0: internal compiler error: Segmentation fault

(37 is the XXX line.) valgrind shows:

==17205== Invalid read of size 8
==17205==    at 0x53F166: gfc_delete_symtree (symbol.c:2374)
==17205==    by 0x540176: gfc_undo_symbols (symbol.c:2845)
==17205==    by 0x510786: decode_statement (parse.c:271)
==17205==    by 0x511C8C: next_statement (parse.c:722)
==17205==    by 0x5155DB: gfc_parse_file (parse.c:4220)
==17205==    by 0x54CB27: gfc_be_parse_file (f95-lang.c:239)
==17205==    by 0x8383A2: toplev_main (toplev.c:1053)
==17205==    by 0x5EA1B7C: (below main) (in /lib64/libc-2.11.1.so)

Tobias



      


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]