Bug 22258 – [betterC] No error message for compiler failure with betterC

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2021-08-31T17:43:50Z
Last change time
2024-12-13T19:18:15Z
Keywords
betterC
Assigned to
No Owner
Creator
Jack Stouffer
Moved to GitHub: dmd#19979 →

Attachments

IDFilenameSummaryContent-TypeSize
1826dust.reduced.zipReduced test caseapplication/zip15393

Comments

Comment #0 by jack — 2021-08-31T17:43:50Z
Created attachment 1826 Reduced test case Adding betterC to my dub.json causes dmd to exit with error code 1 without printing an error message. Could be an ICE but I'm not sure. I've attached the reduced test case from dustmite. Simply cd into the dateparser folder and run dub with no arguments. dmd will exit with an error code but no message. Alternatively, you can download the source and run dub where the bug was found at this commit: https://github.com/JackStouffer/date-parser/commit/50a902fc49bdc883d3525cba200a12a974bdf69f
Comment #1 by bugzilla — 2022-06-04T09:06:43Z
Being a compiler bug, it shouldn't need dub. Is there a way to reproduce it with just the compiler?
Comment #2 by jack — 2022-06-04T23:46:47Z
(In reply to Walter Bright from comment #1) > Being a compiler bug, it shouldn't need dub. Is there a way to reproduce it > with just the compiler? Yeah, cd into the dateparser folder and run dmd -betterC -Isource/ -I../emsi_containers/src/ -I../stdx-allocator/source/ source/dateparser/package.d It exits with error code 1 and no message.
Comment #3 by robert.schadek — 2024-12-13T19:18:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19979 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB