www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 62] New: Error message: 'TOK41 has no effect'.

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

           Summary: Error message: 'TOK41 has no effect'.
           Product: D
           Version: 0.150
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


Should not compile, but error message should not refer to TOK41. Unimportant.
========
varbug2.d(10): mixin mixin peacock!(3);
 peacock is not a template
varbug2.d(11): mixin 'mixin peacock!(3);
' is not a variable
varbug2.d(11): TOK41 has no effect in expression (mixin peacock!(3);
)
varbug2.d(20): template instance varbug2.VarArgs!(Dog).VarArgs!(int) error
insta
ntiating

========
template Rubbish(A)
{
    const int Rubbish = 3;
}

template VarArgs(alias peacock) {
  template VarArgs(A) {
    void VarArgs(A a) {
      mixin peacock!(Rubbish!(A)) zz;
      zz;
    }
  }
}

void Dog() {}

void main()
{
  VarArgs!(Dog)(3);
}


-- 
Mar 22 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=62


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed in 0.151.


-- 
Apr 04 2006