Re: Strongly typed enums as bit fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Today I have tested Intel C++ Compiler - that is OK.

Additionally I noted, that GCC doesn't support declaration like

using NewType = OldType;

which semantically equals to

typedef OldType NewType;

2011/11/20 Jonathan Wakely <jwakely.gcc@xxxxxxxxx>:
> 2011/11/20 Владимир Андреев:
>>
>> C:\MinGW\bin>gcc E:/Test/Main.cpp -o E:/Test/Out.exe -std=c++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-field shall have
> integral or enumeration type (3.9.1)."
>
> Please report it to bugzilla, thanks.
>



-- 
С уважением, Владимир



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux