This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help with bit-field semantics in C and C++
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mike Stump <mrs at apple dot com>
- Cc: Joe Buck <Joe dot Buck at synopsys dot COM>, Roger Sayle <roger at eyesopen dot com>, Mark Mitchell <mark at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: 24 Aug 2004 21:32:38 +0200
- Subject: Re: Help with bit-field semantics in C and C++
- Organization: Integrable Solutions
- References: <C9BF2415-F603-11D8-AF5A-003065BDF310@apple.com>
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