[Issue 788] New: Compiler rejects hex floats in the format: HexPrefix HexDigits . HexDigits(opt) with binary-exponent-part required

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 2 19:43:22 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=788

           Summary: Compiler rejects hex floats in the format: HexPrefix
                    HexDigits . HexDigits(opt) with binary-exponent-part
                    required
           Product: D
           Version: 0.178
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid, spec
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thecybershadow at gmail.com


Spec: http://www.digitalmars.com/d/lex.html#floatliteral

Program:

void main()
{
  float f1 = 0x0.;
  float f2 = 0x1.5;
  float f3 = 0x.5;
}

Compiler output:

C:\...\bugs>dmd hexfloat.d
hexfloat.d(3): binary-exponent-part required
hexfloat.d(4): binary-exponent-part required
hexfloat.d(5): binary-exponent-part required


-- 



More information about the Digitalmars-d-bugs mailing list