Prohibit enum <-> int mixup

Ian Lance Taylor iant@google.com
Tue Feb 1 19:44:00 GMT 2011


"Kevin P. Fleming" <kpfleming@digium.com> writes:

> Well... based on Paolo's reply, that's quite concerning. Does this
> mean that distros need to provide two compiled versions of libstdc++
> and the compiler wrapper will need to select the proper one to link
> against based on whether --std=c++0x was used or not? This could have
> major ripple effects as well, as various other C++ libraries (Boost,
> etc) will have to be compiled in both modes as well.

Yes, I think there is a serious issue here.  There are various forces
pushing toward breaking the libstdc++ ABI.  I do not know what the
libstdc++ maintainer's plans are.

Ian



More information about the Gcc-help mailing list