[Bug c++/17480] collect2 on AIX calls static constructors of unreferenced object modules
ppluzhnikov at charter dot net
gcc-bugzilla@gcc.gnu.org
Fri Sep 24 14:48:00 GMT 2004
------- Additional Comments From ppluzhnikov at charter dot net 2004-09-24 14:48 -------
(In reply to comment #1)
> Technically this is not a bug, as static libraries on AIX also can
> contain the shared library
What's shared libraries got to do with the problem? Nothing (I think).
The facts are:
- test builds everywhere, except AIX (well, the test is missing main.cxx,
which is trivial "int main() { return 0; }").
- on AIX, the test fails with g++, but not with the native xlC compiler [1]
[1] The xlC *does* still call F::F() "unexpectedly" in main2, but such
behavior can be disabled with '-qtwolink' option.
Please consider re-opening.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17480
More information about the Gcc-bugs
mailing list