Bug 484 – Compiler segfault with template variadic used as a template alias.
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P5
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-11-06T03:41:00Z
Last change time
2014-02-15T13:19:18Z
Assigned to
bugzilla
Creator
clugdbug
Comments
Comment #0 by clugdbug — 2006-11-06T03:41:32Z
I'm not sure what this should do, actually -- but it shouldn't crash.
--------
template g(alias B)
{
int g = 2;
}
int f(A...)(A a)
{
return g!(a);
}
int main()
{
return f(4);
}
Comment #1 by matti.niemenmaa+dbugzilla — 2006-11-15T02:57:54Z
Fixed in DMD 0.174.
Comment #2 by thomas-dloop — 2006-11-23T04:59:36Z
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[email protected] schrieb am 2006-11-06:
> http://d.puremagic.com/issues/show_bug.cgi?id=484
> I'm not sure what this should do, actually -- but it shouldn't crash.
> --------
> template g(alias B)
> {
> int g = 2;
> }
>
> int f(A...)(A a)
> {
> return g!(a);
> }
>
> int main()
> {
> return f(4);
> }
Added to DStress as
http://dstress.kuehne.cn/run/t/tuple_02_A.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFZYWiLK5blCcjpWoRAhHQAJ9QB1y8yR/x7DAmpD0jd+d8SXKysQCgh7ac
ZpcVLkU5L7wnVmlTJou495M=
=2Cyw
-----END PGP SIGNATURE-----