← Back to index
|
Original Bugzilla link
Bug 724 – templated circular typedef in function causes: template.c:2735: TemplateDeclaration* TemplateInstance::findTemplateDeclaration(Scope*): Assertion `s->parent' failed.
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-12-23T04:43:00Z
Last change time
2014-02-15T13:21:54Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-12-23T04:43:14Z
(Originally reported by Deewiant <
[email protected]
> on 2006-02-11 as news:
[email protected]
) # # struct Foo(TYPE) { # } # # void main(){ # typedef Foo!(int) Foo; # } # test cases:
http://dstres.kuehne.cn/nocompile/t/typedef_11_A.d
http://dstres.kuehne.cn/nocompile/t/typedef_11_B.d
http://dstres.kuehne.cn/nocompile/t/typedef_11_C.d
http://dstres.kuehne.cn/nocompile/t/typedef_11_D.d
http://dstres.kuehne.cn/nocompile/t/typedef_11_E.d
http://dstres.kuehne.cn/nocompile/t/typedef_11_F.d
http://dstres.kuehne.cn/nocompile/t/typedef_11_G.d
Comment #1
by thomas-dloop — 2006-12-31T08:48:04Z
The above URLs contain a typo:
http://dstress.kuehne.cn/nocompile/t/typedef_11_A.d
http://dstress.kuehne.cn/nocompile/t/typedef_11_B.d
http://dstress.kuehne.cn/nocompile/t/typedef_11_C.d
http://dstress.kuehne.cn/nocompile/t/typedef_11_D.d
http://dstress.kuehne.cn/nocompile/t/typedef_11_E.d
http://dstress.kuehne.cn/nocompile/t/typedef_11_F.d
http://dstress.kuehne.cn/nocompile/t/typedef_11_G.d
Comment #2
by bugzilla — 2007-10-31T20:44:33Z
Works in dmd 1.022 and 2.006