This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How is unexpected() defined?


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]