D.gnu - compiler does not complain no required return value
- z gg.com (10/10) Aug 26 2005 http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/4837
- z gg.com (2/9) Aug 26 2005
-
Stewart Gordon
(13/14)
Aug 26 2005
- z gg.com (6/8) Aug 26 2005 (Yes, it is intentionally done! Thank you for mis-interpreting it.)
-
Stewart Gordon
(13/20)
Aug 31 2005
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/4837 Instead, the generated binary will abort at run-time and give misleading message: int f() { return 0; // gdc Error: AssertError Failure rtn.d(3); dmd Aborted } int main(char[][] args) { f(); return 0; }
Aug 26 2005
int f() { // return 0; // gdc Error: AssertError Failure rtn.d(3); dmd Aborted---^^ need to comment out line 3 to see the error.} int main(char[][] args) { f(); return 0; }
Aug 26 2005
z gg.com wrote:http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/4837<snip> Thank you for confessing your sin. http://smjg.port5.com/faqs/usenet/xpost.html Stewart. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d- s:- a->--- UB P+ L E W++ N+++ o K- w++ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y ------END GEEK CODE BLOCK------ My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Aug 26 2005
Thank you for confessing your sin. http://smjg.port5.com/faqs/usenet/xpost.html(Yes, it is intentionally done! Thank you for mis-interpreting it.) I'm cross-posting to make sure that gdc guys know this is a common bug. Ideally, we have 2 compilers now, so we should have 3 bug lists: D.gdc.bugs D.dmd.bugs D.gdc-dmd-common.bugs
Aug 26 2005
z gg.com wrote:<snip> If you'd followed the link above, you'd know that you haven't crossposted. You've multiposted. Stewart. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d- s:- a->--- UB P+ L E W++ N+++ o K- w++ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y ------END GEEK CODE BLOCK------ My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.Thank you for confessing your sin. http://smjg.port5.com/faqs/usenet/xpost.html(Yes, it is intentionally done! Thank you for mis-interpreting it.) I'm cross-posting to make sure that gdc guys know this is a common bug.
Aug 31 2005