[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 07:25:18 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7909



--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> 2012-04-14 07:26:07 PDT ---
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.

-- 
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