D.gnu - [Issue 656] New: lazy in main
- d-bugmail puremagic.com Dec 06 2006
- Kirk McDonald <kirklin.mcdonald gmail.com> Dec 06 2006
- d-bugmail puremagic.com Dec 06 2006
- Brad Roberts <braddr puremagic.com> Dec 06 2006
- Carlos Santander <csantander619 gmail.com> Dec 06 2006
- Thomas Kuehne <thomas-dloop kuehne.cn> Dec 07 2006
- d-bugmail puremagic.com Dec 12 2006
http://d.puremagic.com/issues/show_bug.cgi?id=656 Summary: lazy in main Product: GDC Version: unspecified Platform: Macintosh OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: glue layer AssignedTo: dvdfrdmn users.sf.net ReportedBy: csantander619 gmail.com Using GDC rev-50. //--------- int main (lazy char [][] args) { return args.length; } //--------- $ gdmd test $ ./test Illegal instruction $ ./test foo Illegal instruction //--------- How valid is this code? --
Dec 06 2006
d-bugmail puremagic.com wrote:http://d.puremagic.com/issues/show_bug.cgi?id=656 Summary: lazy in main Product: GDC Version: unspecified Platform: Macintosh OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: glue layer AssignedTo: dvdfrdmn users.sf.net ReportedBy: csantander619 gmail.com Using GDC rev-50. //--------- int main (lazy char [][] args) { return args.length; } //--------- $ gdmd test $ ./test Illegal instruction $ ./test foo Illegal instruction //--------- How valid is this code?
It shouldn't be valid. At the very bottom of http://digitalmars.com/d/function.html it says: main() must be declared using one of the following forms: void main() { ... } void main(char[][] args) { ... } int main() { ... } int main(char[][] args) { ... } int main(lazy char[][] args) isn't any of these. I'm not even sure what it's supposed to mean. -- Kirk McDonald Pyd: Wrapping Python with D http://pyd.dsource.org
Dec 06 2006
http://d.puremagic.com/issues/show_bug.cgi?id=656 ------- Comment #2 from csantander619 gmail.com 2006-12-06 16:53 ------- (In reply to comment #1)d-bugmail puremagic.com wrote:http://d.puremagic.com/issues/show_bug.cgi?id=656 //--------- int main (lazy char [][] args) { return args.length; } //--------- $ gdmd test $ ./test Illegal instruction $ ./test foo Illegal instruction //--------- How valid is this code?
It shouldn't be valid. At the very bottom of http://digitalmars.com/d/function.html it says: main() must be declared using one of the following forms: void main() { ... } void main(char[][] args) { ... } int main() { ... } int main(char[][] args) { ... } int main(lazy char[][] args) isn't any of these. I'm not even sure what it's supposed to mean.
Neither do I, but if it's not supposed to be valid, the compiler shouldn't compile it. --
Dec 06 2006
Are all of these recent bug reports specific to dgcc/gdc? I suspect that most of them are going to be present in dmd. Unless they're specific to gdc, the best category to file them would be under dmd. Only bugs specific to gdc should be filed against gdc since it relies on the dmd front end for the majority of the heavy lifting. Later, Brad
Dec 06 2006
Brad Roberts escribió:Are all of these recent bug reports specific to dgcc/gdc? I suspect that most of them are going to be present in dmd. Unless they're specific to gdc, the best category to file them would be under dmd. Only bugs specific to gdc should be filed against gdc since it relies on the dmd front end for the majority of the heavy lifting. Later, Brad
I don't know because I can't test them with DMD, but I would guess most of them are also present there. -- Carlos Santander Bernal
Dec 06 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-12-06:http://d.puremagic.com/issues/show_bug.cgi?id=656
Using GDC rev-50. //--------- int main (lazy char [][] args) { return args.length; } //--------- $ gdmd test $ ./test Illegal instruction $ ./test foo Illegal instruction //---------
Test cases: http://dstress.kuehne.cn/nocompile/m/main_07_A.d http://dstress.kuehne.cn/nocompile/m/main_07_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFd/grLK5blCcjpWoRApB+AKCuGR53dT3Z3nkewSWlDor7/CbldQCgrXIR AMltN0Pxbd0QYw3PEMCcqwQ= =KlJL -----END PGP SIGNATURE-----
Dec 07 2006
http://d.puremagic.com/issues/show_bug.cgi?id=656 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #4 from bugzilla digitalmars.com 2006-12-12 04:17 ------- Fixed DMD 0.176 --
Dec 12 2006









Kirk McDonald <kirklin.mcdonald gmail.com> 