← Back to index
|
Original Bugzilla link
Bug 714 – accessing <enum>.max from another module causes a compiler segmentfault
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-12-22T07:22:00Z
Last change time
2014-02-15T13:20:45Z
Keywords
ice-on-valid-code, rejects-valid
Assigned to
bugzilla
Creator
thomas-dloop
Blocks
340
Comments
Comment #0
by thomas-dloop — 2006-12-22T07:22:58Z
(Originally posted by Stewart Gordon <
[email protected]
> on 2005-10-26 as news:
[email protected]
) 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
Comment #1
by clugdbug — 2009-05-14T01:45:38Z
Fixed DMD2.030 and 1.045.