← Back to index
|
Original Bugzilla link
Bug 17382 – void main(){}pragma(msg,main()); crashes DMD
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-05-07T21:54:19Z
Last change time
2021-02-19T09:39:14Z
Keywords
ice
Assigned to
No Owner
Creator
timon.gehr
See also
https://issues.dlang.org/show_bug.cgi?id=21647
Comments
Comment #0
by timon.gehr — 2017-05-07T21:54:19Z
See Summary. The code should compile.
Comment #1
by uplink.coder — 2017-05-11T15:46:14Z
This is because the void main() gets type-painted to int main(); Fix pending.
Comment #2
by github-bugzilla — 2017-11-17T03:15:08Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/db8c74b6cfccb4ac14d32b3f9d16aaff1e806a0c
Fix Issue 17382 - void main(){}pragma(msg,main()); crashes DMD
https://github.com/dlang/dmd/commit/aebbe30de5bbe34b4d2841f07dbe91548da3d0d9
Merge pull request #7316 from RazvanN7/Issue_17382 Fix Issue 17382 - void main(){}pragma(msg,main()); crashes DMD
Comment #3
by github-bugzilla — 2017-12-18T22:56:59Z
Commits pushed to stable at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/db8c74b6cfccb4ac14d32b3f9d16aaff1e806a0c
Fix Issue 17382 - void main(){}pragma(msg,main()); crashes DMD
https://github.com/dlang/dmd/commit/aebbe30de5bbe34b4d2841f07dbe91548da3d0d9
Merge pull request #7316 from RazvanN7/Issue_17382