Bug 22035 – [REG 2.097][ICE] Segmentation fault parsing invalid case statement

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-18T09:27:28Z
Last change time
2021-06-27T12:25:26Z
Keywords
ice-on-invalid-code, ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-06-18T09:27:28Z
Reduced test: --- int ice() { case 1 2: }
Comment #1 by ibuclaw — 2021-06-18T09:31:54Z
Also happens when compiling as D code.
Comment #2 by ibuclaw — 2021-06-18T09:38:32Z
It's a regression https://github.com/dlang/dmd/pull/12292 Just so happens that this change was copied ad-verbatim into cparse as well.
Comment #3 by dlang-bot — 2021-06-18T09:47:50Z
@ibuclaw created dlang/dmd pull request #12702 "fix Issue 22035 - [REG 2.097][ICE] Segmentation fault parsing invalid case statement" fixing this issue: - fix Issue 22035 - [REG 2.097][ICE] Segmentation fault parsing invalid case statement https://github.com/dlang/dmd/pull/12702
Comment #4 by dlang-bot — 2021-06-18T10:02:33Z
@ibuclaw created dlang/dmd pull request #12703 "fix Issue 22035 - [ICE] importC: Segmentation fault parsing invalid case statement" fixing this issue: - fix Issue 22035 - [REG 2.097][ICE] Segmentation fault parsing invalid case statement - fix Issue 22035 - [ICE] importC: Segmentation fault parsing invalid case statement https://github.com/dlang/dmd/pull/12703
Comment #5 by dlang-bot — 2021-06-18T11:07:36Z
dlang/dmd pull request #12702 "fix Issue 22035 - [REG 2.097][ICE] Segmentation fault parsing invalid case statement" was merged into stable: - 59f8aa8420e7179281a7fb305fd416be1d079f4a by Iain Buclaw: fix Issue 22035 - [REG 2.097][ICE] Segmentation fault parsing invalid case statement https://github.com/dlang/dmd/pull/12702
Comment #6 by dlang-bot — 2021-06-18T11:58:58Z
dlang/dmd pull request #12703 "fix Issue 22035 - [ICE] importC: Segmentation fault parsing invalid case statement" was merged into master: - 29e82d323e6d5021549d50906fce652dad403c15 by Iain Buclaw: fix Issue 22035 - [REG 2.097][ICE] Segmentation fault parsing invalid case statement - 730bdebeb2fe05b1cd4976b7970b9402b6daa44c by Iain Buclaw: fix Issue 22035 - [ICE] importC: Segmentation fault parsing invalid case statement https://github.com/dlang/dmd/pull/12703
Comment #7 by dlang-bot — 2021-06-27T12:25:26Z
dlang/dmd pull request #12768 "Merge stable into master" was merged into master: - 5f214609d94e55d39007bbb323aa021e0a78762e by Iain Buclaw: fix Issue 22035 - [REG 2.097][ICE] Segmentation fault parsing invalid case statement (#12702) https://github.com/dlang/dmd/pull/12768