------- Comment #8 from burnus at gcc dot gnu dot org  2010-08-03 10:03 -------
If I run the code in comment 4 with an appended "end" (to make it a complete
program), I (still) get link errors:

/tmp/cc3J3Ygi.o: In function `__m_MOD_new_bar':
aa3.f90:(.text+0x2c): undefined reference to `vtab$bar.1527'

That's with trunk 4.6.0 20100803 (Rev. 162828) x86_64-unknown-linux-gnu with
both -m32 and -m64 - thus I do not think that this is target dependent.


The problem is also obvious: No vtable is created - as mentioned the other day,
I think generating the vtable only when using the a polymorphic type - but then
initializing it several times - seems to be the wrong approach.


-- 


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

Reply via email to