aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/access.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/dmd/access.d')
-rw-r--r--gcc/d/dmd/access.d3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/d/dmd/access.d b/gcc/d/dmd/access.d
index ab9b5d9..1010c14 100644
--- a/gcc/d/dmd/access.d
+++ b/gcc/d/dmd/access.d
@@ -20,6 +20,7 @@ import dmd.dmodule;
import dmd.dscope;
import dmd.dstruct;
import dmd.dsymbol;
+import dmd.errors;
import dmd.expression;
import dmd.location;
import dmd.tokens;
@@ -47,7 +48,7 @@ bool checkAccess(AggregateDeclaration ad, Loc loc, Scope* sc, Dsymbol smember)
if (!symbolIsVisible(sc, smember))
{
- ad.error(loc, "%s `%s` is not accessible", smember.kind(), smember.toChars());
+ error(loc, "%s `%s` %s `%s` is not accessible", ad.kind(), ad.toPrettyChars(), smember.kind(), smember.toChars());
//printf("smember = %s %s, vis = %d, semanticRun = %d\n",
// smember.kind(), smember.toPrettyChars(), smember.visible() smember.semanticRun);
return true;