62 – Error message: 'TOK41 has no effect'.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 62 - Error message: 'TOK41 has no effect'.
Summary: Error message: 'TOK41 has no effect'.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 minor
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2006年03月22日 03:13 UTC by Don
Modified: 2014年02月15日 02:09 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2006年03月22日 03:13:37 UTC
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);
}
Comment 1 Don 2006年04月04日 06:41:37 UTC
Fixed in 0.151.


AltStyle によって変換されたページ (->オリジナル) /