September 23, 2020 [Issue 21245] Error: expression `canBitwiseHash!(...)` of type `void` does not have a boolean value | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21245 Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |regression --- Comment #1 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> --- Amended test case which doesn't have invalid code: /////////////////// test.d /////////////////// struct Node { NodePtr[] choices; void visit(Handler)(Handler h) { foreach (i, f; this.tupleof) if (h.handle(p => &p.tupleof[i])) return; } mixin AutoVisitor; } struct NodePtr { mixin AutoVisitor; void visit(Handler)(Handler h) { h.handle(p => p); } } template AutoVisitor() { hash_t toHash() { alias T = typeof(this); struct Handler { T* self; bool handle(F)(F* delegate(T*) dg) { auto a = dg(self); hashOf(*a); return true; } } visit!(Handler*)(null); return 0; } } ////////////////////////////////////////////// Seems to be a regression. Introduced in https://github.com/dlang/druntime/pull/2240 -- |
December 13 [Issue 21245] Error: expression `canBitwiseHash!(...)` of type `void` does not have a boolean value | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21245 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19784 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation