December 22, 2006 [Issue 719] New: compiler segment faults if struct template is insanciated from another module | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=719 Summary: compiler segment faults if struct template is insanciated from another module Product: D Version: 0.177 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: thomas-dloop@kuehne.cn (Originally posted by Burton Radons <burton-radons@smocky.com> on 2005-05-10 as news:d5s3cd$7tn$1@digitaldaemon.com) # # 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 -- |
March 02, 2007 [Issue 719] compiler segment faults if struct template is instantiated from another module | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=719 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from thomas-dloop@kuehne.cn 2007-03-02 08:29 ------- fixed in DMD-1.00 -- |
Copyright © 1999-2021 by the D Language Foundation