[Issue 6893] New: Write of enum member represented with ubyte or ulong
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 5 04:06:19 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6893
Summary: Write of enum member represented with ubyte or ulong
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-11-05 04:05:46 PDT ---
import std.stdio;
enum E1 : uint { A, B, C };
enum E2 : ubyte { A, B, C };
enum E3 : ulong { A, B, C };
void main() {
writeln(E1.C);
writeln(E2.C);
writeln(E3.C);
}
Output dmd 2.057head:
C
<error>
Expected output:
C
C
C
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list