December 22, 2006
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
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


--