https://d.puremagic.com/issues/show_bug.cgi?id=11937
Summary: Unresolved Symbol when template is instantiated as
default value for function in another module
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Orvid King <[email protected]> 2014-01-16 08:40:39 PST ---
I wish I could think of a shorter name for this, but oh well. This is an issue
caused by one of the PRs merged within the last 24 hours. After reducing my
codebase with dustmite, this is what I get:
--------------
Analyst.d:
import socket.io;
class Analyst
{
public:
Event!(void delegate()) Exit;
this()
{
this.Exit();
}}
--------------
event.d:
module std.event;
struct Event(OPTS...)
{
import std.functional ;
import std.traits ;
alias DelegateType = OPTS;
void opOpAssign(string op )(DelegateType )
{
}
static void rethrowExceptionHandler(DelegateType , Exception ) { }
auto opCall(ParameterTypeTuple!DelegateType , void delegate(DelegateType,
Exception) = toDelegate(&rethrowExceptionHandler))
{
}
}
--------------
io.d: (not originally included in the dustmite process, running it again with
this included now, will update this issue when that finishes.)
module socket.io;
import std.event : Event;
--------------
Yes, I know I'm triggering a different bug by doing that selective import of
Event, but this appears to be a different issue.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------