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


--- Comment #0 from jiki red.email.ne.jp 2013-12-15 22:25:22 PST ---
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


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2013-12-16
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



--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-12-16 16:37:04 PST ---
(In reply to comment #1)
 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


--- Comment #4 from Kenji Hara <k.hara.pg gmail.com> 2013-12-17 04:41:09 PST ---
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



--- Comment #5 from github-bugzilla puremagic.com 2013-12-17 15:02:29 PST ---
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
Merge pull request #2978 from 9rnsr/fix11751

[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