Thread overview | |||||
---|---|---|---|---|---|
|
June 15, 2012 [Issue 8249] New: Spurious error message with templates and alias this | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8249 Summary: Spurious error message with templates and alias this Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2012-06-15 13:09:28 PDT --- Seems like a lookup is not attempted if an error has previously occurred in the module. This example comes from template9.d, and was based on bug 7580. -------- void deliberateError() { int someError = "abc"; } void fred()(int value) {} struct YY { int val; @property int get()() { return val; } alias get this; } void test() { YY y; fred(y); } bug.d(1): Error: cannot implicitly convert expression ("abc") of type string to int bug.d(3): Error: template junk.fred() cannot deduce template function from argument types !()(YY) The second error disappears if the first line is commented out. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 20, 2012 [Issue 8249] Spurious error message with templates and alias this | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=8249 --- Comment #1 from github-bugzilla@puremagic.com 2012-06-20 12:24:20 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c811c9a699892605f7267dc96e52e5aa144232f7 Fix issue 8249 Spurious error message with templates and alias this Lookup should be blocked only by errors in this template instance, not by any global error. https://github.com/D-Programming-Language/dmd/commit/0e2c6421ff333d74acc294c2958f4ae90fa76098 Merge pull request #1015 from donc/spurious8249templatealiasthis Fix issue 8249 Spurious error message with templates and alias this -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 20, 2012 [Issue 8249] Spurious error message with templates and alias this | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=8249 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation