www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10505] New: anonymous enum members cannot have different types

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

           Summary: anonymous enum members cannot have different types
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: henning still-hidden.de


--- Comment #0 from Henning Pohl <henning still-hidden.de> 2013-06-29 12:07:18
PDT ---
enum {
    a = true,
    b = 10.0f
}

---
main.d(3): Error: cannot implicitly convert expression (10.0000) of type float
to bool
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 29 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10505


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-06-29 12:11:34
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2277

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 29 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10505



--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-06-30 01:09:07 PDT ---
I cannot think this is valid. What part of the spec justify this?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 30 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10505


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


--- Comment #3 from Kenji Hara <k.hara.pg gmail.com> 2013-06-30 06:09:13 PDT ---
From the discussion on github, I confirmed that this is a compiler regression
in 2.064alpha.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 30 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10505



--- Comment #4 from github-bugzilla puremagic.com 2013-06-30 07:16:18 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/cf9547c603cf0476844bc5d800e4172a26755814
fix issue 10505 - anonymous enum members cannot have different types

https://github.com/D-Programming-Language/dmd/commit/7eb666b0afd4524c54fa96a7dce1d9640a36d4e3
Merge pull request #2277 from hpohl/10505

[REG2.064a] fix issue 10505 - anonymous enum members cannot have different
types

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 30 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10505


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

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 30 2013