diff dmd/declaration.h @ 639:8aebdf56c455

Move check for access of context for nested class from backend into frontend.
author Christian Kamm <kamm incasoftware de>
date Thu, 02 Oct 2008 23:12:19 +0200
parents 45a67b6f1310
children 6aaa3d3c1183
line wrap: on
line diff
--- a/dmd/declaration.h	Thu Oct 02 03:38:29 2008 +0200
+++ b/dmd/declaration.h	Thu Oct 02 23:12:19 2008 +0200
@@ -636,7 +636,12 @@
     FuncDeclaration *isFuncDeclaration() { return this; }
 
     // llvmdc stuff
+
+    // vars declared in this function that nested funcs reference
+    // is this is not empty, nestedFrameRef is set and these VarDecls
+    // probably have nestedref set too, see VarDeclaration::checkNestedReference
     std::set<VarDeclaration*> nestedVars;
+
     std::string intrinsicName;
 
     bool isIntrinsic();