[Bug 62] New: Error message: 'TOK41 has no effect'.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 22 01:13:38 PST 2006


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 at digitalmars.com
        ReportedBy: clugdbug at 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);
}


-- 




More information about the Digitalmars-d-bugs mailing list