new static if bug Re: DMD 1.032 and 2.016 releases

bearophile bearophileHUGS at mailas.com
Wed Jul 9 13:28:44 PDT 2008


user Wrote:
> New bug introduced in 2.016  (2.015, 2.013 are ok)
> template T(X) {
> static if (is(typeof(X) : A) ||
>            is(typeof(X) : B) ) {

The situation applies to 1.031 too. Try changing that to:

    static if (is(X : A) || is(X : B) ) {

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list