Summary: Weird forward reference error
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Trass3r <> 2011-11-11 11:26:14 PST ---
package mixin template CLWrapper(T, alias g)
    package alias T CTypedontremovethis; 

package struct CLObjectCollection(T)

alias CLObjectCollection!CLDevice CLDevices;

cl_errcode dontremovethis(
) {}

struct CLDevice
    mixin CLWrapper!(int, dontremovethis);

device.d(21): Error: mixin device.CLDevice.CLWrapper!(int,dontremovethis)
forward reference of dontremovethis
device.d(13): Error: template instance device.CLObjectCollection!(CLDevice)
error instantiating

E.g. removing the CLObjectCollection stuff "solves" it even though it isn't
related at all.

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

Reply via email to