www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10140] New: confusing error message: X is private; undefined identifier Y, did you mean X

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10140

           Summary: confusing error message: X is private; undefined
                    identifier Y, did you mean X
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com



----
import std.regex;
void main(){
    auto c=match(s,``);
}
----

Error: module bug std.regex.IR is private
bug.d(3): Error: undefined identifier s, did you mean enum IR?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 23 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10140





 ----
 import std.regex;
 void main(){
     auto c=match(s,``);
 }
 ----
 
 Error: module bug std.regex.IR is private
 bug.d(3): Error: undefined identifier s, did you mean enum IR?
Just to clarify, the bug is that the error message shouldn't even say 'Error: module bug std.regex.IR is private' (which is very confusing). It should just say: Error: undefined identifier s, did you mean enum IR? The second weird thing is that 's' is far from 'IR'; shouldn't it either specify other symbols or put a cap on levinstein distance? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 23 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10140


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |DUPLICATE



And also issue 9644

*** This issue has been marked as a duplicate of issue 5839 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2013