Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198912 - mingw32 fails to compile multiple inherited classes with virtuals correctly
Summary: mingw32 fails to compile multiple inherited classes with virtuals correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR27067
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-12 11:24 UTC by Alex Buell
Modified: 2009-05-02 02:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
virtuals test case (virt-test.cpp,1.59 KB, text/plain)
2007-11-12 11:25 UTC, Alex Buell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2007-11-12 11:24:28 UTC
Attached with this report is a short test program that demonstrates the error that mingw32 displays when it fails to compile this program. Checking with the GCC bugzilla, it turns out that there is a patch available that should solve this problem - see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27067 for details. 

Reproducible: Always

Steps to Reproduce:
1.Build mingw32 using: crossdev --b 2.18-r1 --g 4.1.2 --k 3.10 --l 3.13 mingw32
2.mingw32-g++ virt_test.cpp -o virt_test.exe

Actual Results:  
 mingw32-g++ virt-test.cpp -o virt-test.exe
virt-test.cpp:69: error: ‘char *LTHUNK2()’ aliased to undefined symbol ‘_ZN6bottom4fun2Ev’
virt-test.cpp:69: error: ‘char *LTHUNK3()’ aliased to undefined symbol ‘_ZN6bottom4fun2Ev’
virt-test.cpp:69: error: ‘double *LTHUNK4()’ aliased to undefined symbol ‘_ZN6bottom4fun3Ev’
virt-test.cpp:69: error: ‘double *LTHUNK5()’ aliased to undefined symbol ‘_ZN6bottom4fun3Ev’


Expected Results:  
No linkage errors should have happened
Comment 1 Alex Buell 2007-11-12 11:25:46 UTC
Created attachment 135815 [details]
virtuals test case
Comment 2 Alex Buell 2007-11-23 16:32:13 UTC
Has there been any progress on this one? Thanks and apologies if work is already under way.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2009-05-02 02:59:47 UTC
Fixed in newer versions of gcc.