[Issue 10336] New: template opDispatch to function delegate undefined behavior
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 11 10:09:57 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10336
Summary: template opDispatch to function delegate undefined
behavior
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: d+bugzilla at garciat.com
--- Comment #0 from Gabriel Garcia <d+bugzilla at garciat.com> 2013-06-11 10:09:55 PDT ---
DMD 2.063
Code:
struct test {
template opDispatch(string name) {
enum opDispatch = function(int x) {
return x;
};
}
}
int main() {
test t;
return t.hello(12);
}
Output is consistently 0.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list