1260 – Another tuple bug

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1260 - Another tuple bug
Summary: Another tuple bug
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 blocker
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2007年06月07日 00:58 UTC by Max Samukha
Modified: 2014年02月16日 15:23 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 Max Samukha 2007年06月07日 00:58:41 UTC
template Foo(T, Args...)
{
 void bar(Args args, T t)
 {
 }
}
void main()
{
 alias Foo!(int) aFoo;
}
Error: error: forward reference of T
Compiles with one more type added to Foo's parameters:
alias Foo!(int, int) aFoo; // ok
Comment 1 Jari-Matti Mäkelä 2007年06月26日 14:15:16 UTC
Fixed in 1.017.


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