Bug 719 – compiler segment faults if struct template is instantiated from another module

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-12-22T07:26:00Z
Last change time
2014-02-15T13:20:53Z
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2006-12-22T07:26:11Z
(Originally posted by Burton Radons <[email protected]> on 2005-05-10 as news:[email protected]) # # struct TC(T){ # void method(){ # void inline_function(){ # } # } # } # # template TB(T){ # alias TC!(T) tc_instance; # } # # struct TA(T){ # mixin TB!(T); # } # # # void main(){ # TA!(int) variable; # } # If main is in the same module as TA it compiles, otherwise the compiler segfaults. test cases: http://dstress.kuehne.cn/compile/b/bug_20050510_A1.d http://dstress.kuehne.cn/run/b/bug_20050510_A2.d http://dstress.kuehne.cn/compile/b/bug_20050510_B1.d http://dstress.kuehne.cn/run/b/bug_20050510_B2.d http://dstress.kuehne.cn/compile/b/bug_20050510_C1.d http://dstress.kuehne.cn/run/b/bug_20050510_C2.d http://dstress.kuehne.cn/compile/b/bug_20050510_D1.d
Comment #1 by thomas-dloop — 2007-03-02T08:29:32Z
fixed in DMD-1.00