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]
Other format: [Raw text]

Re: [v3] c++0x <system_error> CD updates


Hi,
> This line in error_constants.h doesn't work with 16 bit targets:
>
>       no_posix_equivalent = 1L << 16
>
> In file included from /sata/dj/gnu/gcc/m32c-elf/m32c-elf/libstdc++-v3/include/system_error:44,
>                  from /sata/dj/gnu/gcc/gcc/libstdc++-v3/src/functexcept.cc:32:
> /sata/dj/gnu/gcc/m32c-elf/m32c-elf/libstdc++-v3/include/m32c-elf/bits/error_constants.h:176: error: enumerator value 65536l is too large for underlying type 'int'
> make[4]: *** [functexcept.lo] Error 1
> make[4]: Leaving directory `/sata/dj/gnu/gcc/m32c-elf/m32c-elf/libstdc++-v3/src'
I see your point, on the other hand seems to me a bit "unfair" pointing
out that in a message following up to Chris' patch, which didn't touch
that line. Also, we already have something very similar in, eg,
ios_base.h, and nobdy complained to date, it's *very* old (and critical)
code. If at this point those 16-bit issues can be fixed without
affecting the ABI, let's do something consistent across the library.

Paolo.


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