D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17382 - void main(){}pragma(msg,main()); crashes DMD
Summary: void main(){}pragma(msg,main()); crashes DMD
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2017-05-07 21:54 UTC by timon.gehr
Modified: 2021-02-19 09:39 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2017-05-07 21:54:19 UTC
See Summary.

The code should compile.
Comment 1 uplink.coder 2017-05-11 15:46:14 UTC
This is because the void main() gets type-painted to int main();
Fix pending.
Comment 2 github-bugzilla 2017-11-17 03:15:08 UTC
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 github-bugzilla 2017-12-18 22:56:59 UTC
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