D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8352 - Wrong "__overloadset isn't a template" error
Summary: Wrong "__overloadset isn't a template" error
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: diagnostic, pull, rejects-valid
: 9487 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-07-06 05:20 UTC by bearophile_hugs
Modified: 2013-07-16 23:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012-07-06 05:20:25 UTC
This program compiles (dmd 2.060alpha):


import std.algorithm;
void main() {
    [1, 2].remove!(x => x == 2)();
}




While this one:


import std.stdio, std.algorithm;
void main() {
    [1, 2].remove!(x => x == 2)();
}



Gives:

test.d(3): Error: __overloadset isn't a template
Comment 1 Andrej Mitrovic 2013-01-13 10:41:07 UTC
Similar (maybe even caused by the same thing) Issue 6539.
Comment 2 Andrej Mitrovic 2013-02-09 05:46:12 UTC
*** Issue 9487 has been marked as a duplicate of this issue. ***
Comment 4 github-bugzilla 2013-07-16 18:35:52 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/909e992ebbae2b3430608caeaf524323eee3d74a
fix Issue 8352 - Wrong "__overloadset isn't a template" error

https://github.com/D-Programming-Language/dmd/commit/cc6b7372f2efffd4c5c0314373af3b595ba06a2c
Merge pull request #1660 from 9rnsr/fix1900

Issue 1900 & 8352 & 9235 - Implement Template Overload Set