www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1154] New: Implicit template return value + mixin results in invalid type deduction

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1154

           Summary: Implicit template return value + mixin results in
                    invalid type deduction
           Product: D
           Version: 1.012
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: onlystupidspamhere yahoo.se


template foo() {
  mixin("alias int foo;");
}

void main() {
  foo!() baa;
}

bug2.d(6): Error: foo!() is used as a type
bug2.d(6): variable myprog.main.a voids have no value


-- 
Apr 16 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1154





------- Comment #1 from thomas-dloop kuehne.cn  2007-04-25 12:57 -------
Added to DStress as
http://dstress.kuehne.cn/compile/m/mixin_32_A.d
http://dstress.kuehne.cn/compile/m/mixin_32_B.d


-- 
Apr 25 2007