[Issue 8104] New: UFCS on forward reference won't compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 15 17:54:21 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8104
Summary: UFCS on forward reference won't compile
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: john at neggie.net
--- Comment #0 from John Belmonte <john at neggie.net> 2012-05-15 17:55:50 PDT ---
It should be possible to use UFCS on an opaque struct.
----
struct State;
void foo(State*) {};
void main() {
State* s;
foo(s); // ok
s.foo(); // compile error
}
----
Error: struct State is forward referenced when looking for 'foo'
Error: struct State is forward referenced when looking for 'opDot'
Error: struct State is forward referenced when looking for 'opDispatch'
--
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