[Issue 7909] to!(enum)(string) and to!(string)(enum) break when enum is integral
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 14 20:44:17 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7909
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull, rejects-valid
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2012-04-14 20:45:05 PDT ---
https://github.com/D-Programming-Language/phobos/pull/537
(In reply to comment #1)
> static assert(isIntegral!(Test));
> fails on .58, passes on .59. This is what causes the matches more than one
> error.
>
> Though, interesting to note that:
> static assert(is(Test : int));
> passes on both .58 and 59.
>
>
> It might be some kind of compiler overload resolution change that broke things;
> isIntegral is implemented with that.
>
> The compiler might have changed for correctness (I'm not really sure yet), but
> the Phobos behavior used to be good and now isn't, so I still call it a phobos
> regression.
Yes, this is 2.059 Phobos regression, not compilers.
As you mentioned, isIntegral!T should return false if T is enum type.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list