Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 31, 2012 [Issue 8174] New: short floating point literals not catched in the parser | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8174 Summary: short floating point literals not catched in the parser Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: mrmocool@gmx.de --- Comment #0 from Trass3r <mrmocool@gmx.de> 2012-05-31 17:30:02 CEST --- void main() { float f = 1.f; } $ dmd test.d test.d(3): Error: undefined identifier 'f' This should be catched in the parser with a proper error message. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 31, 2012 [Issue 8174] short floating point literals not catched in the parser | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=8174 Alex Rønne Petersen <alex@lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alex@lycus.org --- Comment #1 from Alex Rønne Petersen <alex@lycus.org> 2012-05-31 17:31:17 CEST --- No? This is UFCS at work. It's trying to apply a function f to the integer literal 1. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 31, 2012 [Issue 8174] short floating point literals not catched in the parser | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=8174 --- Comment #2 from Trass3r <mrmocool@gmx.de> 2012-05-31 17:34:21 CEST --- Ah didn't think of UFCS! The error message could still be more helpful I guess. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 31, 2012 [Issue 8174] short floating point literals not catched in the parser | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=8174 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg@gmx.com --- Comment #3 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-05-31 08:47:31 PDT --- But what else would it be? It's complaining about exactly what you're doing - using an undefined indentifier. It even tells you exactly what the undefined identifier is. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 31, 2012 [Issue 8174] short floating point literals not catched in the parser | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=8174 --- Comment #4 from Trass3r <mrmocool@gmx.de> 2012-05-31 18:05:32 CEST --- Don't know. Maybe it could mention it's trying UFC. Whatever. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation