Thread overview
[Issue 1154] New: Implicit template return value + mixin results in invalid type deduction
Apr 16, 2007
d-bugmail
Apr 25, 2007
d-bugmail
Jun 18, 2011
Kenji Hara
Jun 18, 2011
kennytm@gmail.com
April 16, 2007
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


-- 

April 25, 2007
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


-- 

June 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1154


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k.hara.pg@gmail.com


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2011-06-18 01:13:33 PDT ---
Sample code pass compile using trunk dmd
(d36b3b12fc4814e59f3a0d680b8700e787b1ceff).

I guess this issue has been already resolved.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1154


kennytm@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kennytm@gmail.com


--- Comment #3 from kennytm@gmail.com 2011-06-18 02:39:24 PDT ---
(In reply to comment #2)
> Sample code pass compile using trunk dmd
> (d36b3b12fc4814e59f3a0d680b8700e787b1ceff).
> 
> I guess this issue has been already resolved.

d36b3b is on the 2.x branch, but this bug is for 1.x.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------