1428 – Segfault on template specialization with delegates and tuples

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1428 - Segfault on template specialization with delegates and tuples
Summary: Segfault on template specialization with delegates and tuples
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
Reported: 2007年08月17日 20:13 UTC by Reiner Pope
Modified: 2015年06月09日 01:14 UTC (History)
1 user (show)

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 Reiner Pope 2007年08月17日 20:13:02 UTC
The following segfaults the compiler. If you remove the tuples, either specialisation, or do a number of other things, the problem disappears.
template tuple(T...)
{
	alias T tuple;
}
template Foo(S : void delegate(tuple!(int))) {}
template Foo(S : void delegate(tuple!(int, int))) {}
alias Foo!(void delegate(int)) Bar;
Comment 1 Don 2009年05月14日 06:43:52 UTC
Fixed DMD2.030 and 1.045.


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