July 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4329



--- Comment #10 from bearophile_hugs@eml.cc 2010-07-31 05:47:27 PDT ---
One case:

void main() {
    enum Foo { E }
    Foo f;
    switch (f) {
        case 1: break;
        default: break;
    }
}


dmd 2.047 prints:
test.d(5): Error: cannot implicitly convert expression (1) of type int to Foo
test.d(5): Error: case must be a string or an integral constant, not __error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 14, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4329



--- Comment #11 from Leandro Lucarella <llucax@gmail.com> 2010-08-13 20:07:43 PDT ---
Another testcase:

---
pragma (lib, l);
void main() {}
---

p.d(1): Error: undefined identifier l
p.d(1): Error: pragma lib string expected for library name, not '__error'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4329



--- Comment #12 from bearophile_hugs@eml.cc 2010-09-09 12:49:36 PDT ---
struct Foo {
    int x;
}
void main() {
    Foo(5 ^^ 5); // line 5
}

DMD 2.048 shows:
test.d(5): Error: must import std.math to use ^^ operator
test.d(5): Error: structliteral has no effect in expression (Foo((__error)))

---------------------------

void foo() {}
void main() {
    foreach (x; foo()[0 .. 1]) {}
}

DMD 2.048 shows:
test.d(3): Error: foo() cannot be sliced with []
test.d(3): Error: foreach: _error_ is not an aggregate type

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 25, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4329



--- Comment #13 from bearophile_hugs@eml.cc 2010-09-25 12:36:46 PDT ---
struct Vec(int N) {
    int[N] data;
}
void main() {
    Vec!(1)([1, 2]);
}


DMD 2.049 prints:
test.d(5): Error: cannot implicitly convert expression ([1,2]) of type int[] to
int
test.d(5): Error: structliteral has no effect in expression (Vec((__error)))

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4329


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jminer7@gmail.com


--- Comment #14 from Don <clugdbug@yahoo.com.au> 2010-11-05 01:22:40 PDT ---
*** Issue 2464 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 07, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4329


nfxjfg@gmail.com changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 07, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4329


Brad Roberts <braddr@puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |braddr@puremagic.com
         Resolution|INVALID                     |


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 13, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4329



--- Comment #15 from Don <clugdbug@yahoo.com.au> 2011-02-13 12:46:19 PST ---
Original D1 case is patched here: https://github.com/donc/dmd/commit/1acd2b64b10c4a985a10750d5ad83a0b7e98332b Other cases patched for D2: https://github.com/donc/dmd/commit/3a512771e31de4fb8b4e806154b08766fd97aed1 and for D1: https://github.com/donc/dmd/commit/327afade5bfe0551176ee17ab6c991139dcb8058

Another test case from bug 5288:
auto bug4329e(int z) {
    if (z) return undefined;
    else return 0;
}
fixed here:
https://github.com/donc/dmd/commit/daff978816461602788f1cb396d9826918b6da21

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 02, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4329


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #16 from Don <clugdbug@yahoo.com.au> 2011-03-01 17:12:46 PST ---
https://github.com/D-Programming-Language/dmd/commit/3a512771e31de4fb8b4e806154b08766fd97aed1

https://github.com/D-Programming-Language/dmd/commit/daff978816461602788f1cb396d9826918b6da21

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »