~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Puma/gen-release/step2/src/CSemVisitor.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  SEM_MSG (node__, sev_warning << mesg__)
53
53
 
54
54
 
55
 
CSemVisitor::CSemVisitor (ErrorSink &e) : err (e) {
56
 
  current_scope = (CStructure*)0;
 
55
CSemVisitor::CSemVisitor (ErrorSink &e, CStructure *scope) : err (e) {
 
56
  current_scope = scope;
57
57
}
58
58
 
59
59
CTypeInfo *CSemVisitor::resolveExpr (CTree *expr, CTree *node) const {
102
102
    pre_action ((CT_ForStmt*)node);
103
103
  else if (id == CT_WhileStmt::NodeId ())
104
104
    pre_action ((CT_WhileStmt*)node);
 
105
  else if (id == CT_DoStmt::NodeId ())
 
106
    pre_action ((CT_DoStmt*)node);
105
107
  else if (id == CT_ExprStmt::NodeId ())
106
108
    pre_action ((CT_ExprStmt*)node);
107
109
  else if (id == CT_CaseStmt::NodeId ())
332
334
            CSemExpr::cast_to (t1, expr, node);
333
335
        } else if (! (t1->isPointer () && t2->isPointer () && 
334
336
                      (CSemExpr::compatibleBase (t1, t2) ||
335
 
                        t1->VirtualType ()->BaseType ()->isVoid () || 
 
337
                       t1->VirtualType ()->BaseType ()->isVoid () || 
336
338
                       t2->VirtualType ()->BaseType ()->isVoid ()) &&
337
339
                      (t2->isConst () ? t1->isConst () : true) &&
338
340
                      (t2->isVolatile () ? t1->isVolatile () : true) &&