www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10561] New: Regression (2.064 HEAD): anon enum members no longer have enum base type

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

           Summary: Regression (2.064 HEAD): anon enum members no longer
                    have enum base type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-07-06
15:39:50 PDT ---
-----
enum : ubyte
{
    GL_FALSE                          = 0,
    GL_TRUE                           = 1,
}

void main()
{
    static assert(is(typeof(GL_TRUE) == ubyte));
}
-----

2.063:
$ dmd test.d

2.064 git-head:
$ dmd test.d
 test.d(11): Error: static assert  (is(int == ubyte)) is false
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 06 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10561


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
                 CC|                            |henning still-hidden.de


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-07-06 18:21:37
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2309

Dayum, these enums.

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



--- Comment #2 from github-bugzilla puremagic.com 2013-07-07 21:00:58 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ee39e099a9886c2fceccee2a4c3e47e114e4864f
fix issue 10561 - anon enum members no longer have enum base type

https://github.com/D-Programming-Language/dmd/commit/fbb0ac5bed755cac79d17048fbfd4d7345b6bb17
Merge pull request #2309 from hpohl/10561

[REG2.064a] fix issue 10561 - anon enum members no longer have enum base type

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


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: -------
Jul 07 2013