Thread overview
[Issue 1941] New: missing line on inaccesable external private module member
Mar 25, 2008
d-bugmail
Mar 25, 2008
d-bugmail
Jul 09, 2008
d-bugmail
Aug 10, 2008
d-bugmail
Nov 14, 2009
Leandro Lucarella
May 17, 2010
Don
Jun 01, 2010
Walter Bright
March 25, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1941

           Summary: missing line on inaccesable external private module
                    member
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: spam@extrawurst.org


[mod.d]
module mod;

private int bar;

[main.d]
module main;

import mod;

void main(){bar = 0;}

gives dmd compiler output:
"main.d: module main mod.bar is private"

this message must be improved. it should at least provide a line number to be parsable as every other error message (every other besides the other ones that are broke ;)


-- 

March 25, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1941





------- Comment #1 from technocrat7@gmail.com  2008-03-25 13:28 -------
I don't know how the compiler works, but here's my guess on the source of the problem (and its solution).

src\dmd\dsymbol.c, line 667 (DMD 1.028):
                error("%s is private", d->toPrettyChars());
should be:
                error(loc, "%s is private", d->toPrettyChars());


-- 

July 09, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1941


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from clugdbug@yahoo.com.au  2008-07-09 07:12 -------
Fixed DMD1.032


-- 

August 10, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1941


spam@extrawurst.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Version|2.012                       |2.018




------- Comment #3 from spam@extrawurst.org  2008-08-10 06:08 -------
I dont know if it was fixed in the previous version but i know for sure it is still the same bug in 2.018, so i reopen it.


-- 

November 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1941


Leandro Lucarella <llucax@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax@gmail.com
           Severity|normal                      |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1941


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug@yahoo.com.au
           Severity|regression                  |critical


--- Comment #4 from Don <clugdbug@yahoo.com.au> 2010-05-17 08:19:32 PDT ---
This has actually never worked on any version of DMD. Downgrading to critical. The patch still works, though (it is line 847 of dsymbol.c in DMD2.047.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 01, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1941


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2010-05-31 22:48:30 PDT ---
http://www.dsource.org/projects/dmd/changeset/510

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