Bug 15876 – various cases of SEGFAULT when formatting parser errors
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-04-04T23:23:52Z
Last change time
2020-03-21T03:56:38Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Alex Parrill
Comments
Comment #0 by initrd.gz — 2016-04-04T23:23:52Z
Probably related to https://issues.dlang.org/show_bug.cgi?id=15855, though it apparently applies to more than just the for keyword.
Example file contents (one file per line):
o[{scope(x
o[{template
d(={for
typeof){for
p[{alias
p(={alias
Similar to the linked issue, DMD spits out some error messages and then terminates with a segfault. DMD v2.070.2
Comment #1 by ag0aep6g — 2016-04-05T05:04:53Z
(In reply to Alex Parrill from comment #0)
> d(={for
> typeof){for
These two don't segfault anymore with git master (6199fd3).
Comment #2 by iamthewilsonator — 2018-11-24T11:18:49Z
none of these segfault anymore
Comment #3 by ag0aep6g — 2018-11-24T14:28:12Z
Reopening. I still get segfaults. Tested with git master (DMD64 D Compiler v2.083.0-326-g1e902fc61). Remember to test one line at a time, not all at once.