December 22, 2006 [Issue 714] New: accessing <enum>.max from another module causes a compiler segmentfault | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=714 Summary: accessing <enum>.max from another module causes a compiler segmentfault 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 Stewart Gordon <smjg_1998@yahoo.com> on 2005-10-26 as news:djnicb$1a5t$1@digitaldaemon.com) a.d: # # module a; # import b; # # int array[Enum.max + 1]; # # int main(){ # assert(array.length == 3); # return 0; # } # b.d: # # module b; # import a; # # enum Enum { # A = -1, # B = 2 # } # dmd a.d b.d: success dmd b.d a.d: run/i/import_11_B.d(14): Error: enum Enum is forward referenced <segmentfault> test cases: http://dstress.kuehne.cn/run/i/import_11_A.d http://dstress.kuehne.cn/run/i/import_11_B.d -- |
May 14, 2009 [Issue 714] accessing <enum>.max from another module causes a compiler segmentfault | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=714 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |FIXED --- Comment #1 from Don <clugdbug@yahoo.com.au> 2009-05-14 01:45:38 PDT --- Fixed DMD2.030 and 1.045. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation