From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4131 invoked by alias); 20 Nov 2011 14:04:40 -0000 Received: (qmail 4123 invoked by uid 22791); 20 Nov 2011 14:04:39 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Nov 2011 14:04:26 +0000 Received: by wwe6 with SMTP id 6so7452282wwe.8 for ; Sun, 20 Nov 2011 06:04:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.131.234 with SMTP id m84mr1689537wei.25.1321797865534; Sun, 20 Nov 2011 06:04:25 -0800 (PST) Received: by 10.216.85.76 with HTTP; Sun, 20 Nov 2011 06:04:25 -0800 (PST) In-Reply-To: References: Date: Sun, 20 Nov 2011 18:17:00 -0000 Message-ID: Subject: Re: Strongly typed enums as bit fields From: Jonathan Wakely To: =?KOI8-R?B?98zBxMnNydIg4c7E0sXF1w==?= Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00208.txt.bz2 2011/11/20 =D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80 =D0=90=D0=BD=D0= =B4=D1=80=D0=B5=D0=B5=D0=B2: > > C:\MinGW\bin>gcc E:/Test/Main.cpp -o E:/Test/Out.exe -std=3Dc++0x > E:/Test/Main.cpp:9:18: error: bit-field 'Field1' with non-integral type > > MSVC 11.0 normally processes this program. > > Why GCC throws this error and MCVC doesn't? I think this should be valid, the standard says "A bit-=EF=AC=81eld shall h= ave integral or enumeration type (3.9.1)." Please report it to bugzilla, thanks.