Help with bit-field semantics in C and C++
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Aug 24 20:03:00 GMT 2004
Mike Stump <mrs@apple.com> writes:
| On Tuesday, August 24, 2004, at 10:51 AM, Joe Buck wrote:
| > On Tue, Aug 24, 2004 at 11:05:41AM -0600, Roger Sayle wrote:
| >> The problem here is that a C++ enum can hold values outside the range
| >> of it's type.
|
| > If it does, the program is not a valid ISO C++ program.
|
| ? What? Of course it is.
|
| I think the standard is perfectly clear in this area:
You're quoting C99 which has a quite different semantics in this area.
Joe is talking about C++.
-- Gaby
More information about the Gcc
mailing list