2537 – compiler crashes on this code:

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2537 - compiler crashes on this code:
Summary: compiler crashes on this code:
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年12月22日 10:14 UTC by Weed
Modified: 2015年06月09日 01:20 UTC (History)
0 users

See Also:


Attachments
dmd 2.022 segfault on this code (1.20 KB, text/plain)
2008年12月22日 10:15 UTC, Weed
Details
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Weed 2008年12月22日 10:14:12 UTC
(code attached in next message)
$ dmd -unittest bug.d
Segmentation fault
Comment 1 Weed 2008年12月22日 10:15:07 UTC
Created attachment 284 [details] 
dmd 2.022 segfault on this code
Comment 2 Weed 2008年12月22日 10:19:59 UTC
(thanks to maxter)
Error can be avoided by replacement of lines on:
 enum isDynamicT = false;
 alias typeof( this ) M;
 enum width = width2;
 enum height = height2;
 enum length = width * height;
 private Element[] data;
Comment 3 Brad Roberts 2009年01月08日 21:57:48 UTC
Wait.. Does dmd still crash on the original code or not? ANY instance of dmd crashing is a bug, even if the input source can be changed to avoid it.
Comment 4 Weed 2009年01月09日 08:01:31 UTC
(In reply to comment #3)
> Wait.. Does dmd still crash on the original code or not? ANY instance of dmd
> crashing is a bug, even if the input source can be changed to avoid it.
> 
No, in 2.023 this bug is fixed


AltStyle によって変換されたページ (->オリジナル) /