Command line: g++ B.ii C.ii -fPIC -shared -flto or g++ B.ii C.ii -fPIC -shared -fwhopr
Tested revisions: r155363 - warns r155248 - warns r155141 - warns r154886 - warns Output (r155363, r155248): $ /mnt/svn/gcc-trunk/binary-155363-lto/bin/g++ B.ii C.ii -fPIC -shared -fwhopr header.hpp:10:19: warning: type of ‘array’ does not match original declaration B.cpp:7:14: note: previously declared here Output (r155141, r154886): $ /mnt/svn/gcc-trunk/binary-155141-lto-checking-release/bin/g++ B.ii C.ii -fPIC -shared -fwhopr header.hpp:10:19: warning: type of ‘array’ does not match original declaration B.cpp:7:14: note: previously declared here /tmp/cclAkKXS.wpa.ltrans.o:(.bss._ZN1B5arrayE[_ZN1B5arrayE]+0x0): multiple definition of `_ZN1B5arrayE' /tmp/ccv6HwKA.wpa.ltrans.o:(.bss+0x20): first defined here /tmp/cclAkKXS.wpa.ltrans.o:(.bss.c[c]+0x0): multiple definition of `c' /tmp/ccv6HwKA.wpa.ltrans.o:(.bss+0x0): first defined here collect2: ld returned 1 exit status -- Summary: 'warning: type of "array" does not match original declaration' with -flto/-fwhopr Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42451