How is unexpected() defined?

Paolo Carlini pcarlini@unitus.it
Thu Nov 1 08:33:00 GMT 2001


Hi,

I would like to support Jack Reeves' observations with the following experimental
findings: a new C++ compiler for Linux does exactly the same as GCC, another one (known
for its closeness to the standard) even refuses to compile the testcase with the following
error message (slightly edited ;-)

/home/paolo/XXXXX/xxxxxx/lib/libYYYY.a(eh_util.o): In function `std::unexpected(void)':
eh_util.o(.text+0x208): multiple definition of `std::unexpected(void)'
bug.o(.text+0xe74): first defined here
/usr/i686-pc-linux-gnu/bin/ld: Warning: size of symbol `std::unexpected(void)' changed
from 42
to 33 in eh_util.o

Cheers,
Paolo.




More information about the Libstdc++ mailing list