--- Comment #1 from John Belmonte <> 2012-05-15 19:54:46 PDT ---
I scanned the dmd UFCS implementation.  Apparently expressions are blindly
translated from e.g. to bar(foo) when the normal searches on foo
fail.  In other words, we don't know at the time of the normal searches whether
there is a matching free function.

I propose resolving this by, in all cases, not considering a search on an
opaque struct to be an error.  That is, will not yield a "forward
referenced" error regardless of whether a matching free function exists.

For the case where no free function exists, the compile error would then be
"undefined identifier 'bar'"-- i.e. the same as for a non-opaque struct.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to