digitalmars.D.bugs - [Issue 10038] New: Poor error for undefined variable in template args using UFCS on UDT
- d-bugmail puremagic.com (29/29) May 07 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10038
- d-bugmail puremagic.com (11/11) May 07 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10038
- d-bugmail puremagic.com (11/14) May 07 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10038
http://d.puremagic.com/issues/show_bug.cgi?id=10038 Summary: Poor error for undefined variable in template args using UFCS on UDT Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: peter.alexander.au gmail.com 09:48:17 PDT --- -------------------------------- struct S {} int foo(alias A)(S s) { return 1; } int baderror = S().foo!(X); -------------------------------- Error is: bug.d(3): Error: no property 'foo' for type 'S' Ideally would be: bug.d(3): Error: undefined identifier X. This can be quite problematic in large UFCS chain expressions, like what you get when using ranges. A small typo can take quite a while to track down with the current diagnostics. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 07 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10038 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc I think this is already fixed in the latest beta, it gives: temp.d(3): Error: undefined identifier X, did you mean struct S? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 07 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10038 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 12:06:37 PDT ---I think this is already fixed in the latest beta, it gives: temp.d(3): Error: undefined identifier X, did you mean struct S?Yes it's a dup of some recently fixed bug, can't remember the ID though. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 07 2013