www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11751] New: [REG2.065a] Hex float exponents should be decimal

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11751

           Summary: [REG2.065a] Hex float exponents should be decimal
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid, wrong-code
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jiki red.email.ne.jp



Dmd has been changed to accept hex float exponent by hexadecimal (and 'F'
suffix, too).
This is a regression.

In the spec:
  HexExponent:
    HexExponentStart DecimalDigitsNoSingleUS

This regression is introduced by Pull 2923.
https://github.com/D-Programming-Language/dmd/pull/2923
"redo lexing of float literals"

Its comment:
Shouldn't be any behavior changes.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 15 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11751


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com



11:09:27 PST ---
Can you give an example?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 16 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11751





 Can you give an example?
auto x = 0x1.FFFFFFFFFFFFFpABC; // ^^^ With 2.064.2: test.d(1): Error: exponent expected test.d(1): Error: semicolon expected following auto declaration, not 'BC' test.d(1): Error: no identifier for declarator BC With git head: (no compilation error) -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 16 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11751


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/dmd/pull/2978

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11751




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4d4e67455efb4728ba8f9181adc5e4f10fc90fd8
fix Issue 11751 - Hex float exponents should be decimal

https://github.com/D-Programming-Language/dmd/commit/00e4068b327323aff2b459ec598eeae21622b70f


[REG2.065a] Issue 11751 - Hex float exponents should be decimal

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 17 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11751


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 17 2013