Bug 526 – Compiler crash when use typetuple in template argument

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2006-11-15T21:36:00Z
Last change time
2015-06-09T01:31:17Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
lovesyao

Comments

Comment #0 by lovesyao — 2006-11-15T21:36:51Z
import std.typetuple; template test(TypeTuple!(uint,ulong) tuple){ }
Comment #1 by bugzilla — 2007-10-03T00:17:47Z
No crash for dmd 1.021 and 2.004. The code is invalid anyway, and an error message is printed.
Comment #2 by shro8822 — 2007-10-03T09:45:13Z
this would be really cool if you could do it: template Using(alias fn) { static if(fn args == function) { template Replace(I...) { alias RemoveIndex!(I).From(args) dropedArgs; template With(newArgs v) // derived arg list in template == typesafe { ... } } else static assert(false) }
Comment #3 by bugzilla — 2008-06-28T01:31:36Z
I don't understand the suggested feature or what it has to do with the bug report. The bug itself appears to be working fine.