ZoriaRPG

Gray AST.o Errors

Jan 21st, 2017
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.            ^
  2. In file included from src/parser/AST.h:9:0,
  3.                  from src/parser/AST.cpp:3:
  4. src/parser/Compiler.h: In member function 'virtual void Opcode::execute(ArgumentVisitor&, void*)':
  5. src/parser/Compiler.h:51:15: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
  6.          void *temp;
  7.                ^
  8. In file included from src/parser/AST.cpp:3:0:
  9. src/parser/AST.h: At global scope:
  10. src/parser/AST.h:383:18: error: 'virtual void ASTVisitor::caseDefault(void*)' cannot be overloaded
  11.      virtual void caseDefault(void *param) = 0;
  12.                   ^
  13. src/parser/AST.h:121:18: error: with 'virtual void ASTVisitor::caseDefault(void*)'
  14.      virtual void caseDefault(void *param)=0;
  15.                   ^
  16. src/parser/AST.h:385:18: error: 'virtual void ASTVisitor::caseProgram(ASTProgram&, void*)' cannot be overloaded
  17.      virtual void caseProgram(ASTProgram &, void *param) {caseDefault(param);}
  18.                   ^
  19. src/parser/AST.h:122:18: error: with 'virtual void ASTVisitor::caseProgram(ASTProgram&, void*)'
  20.      virtual void caseProgram(ASTProgram &, void *param)
  21.                   ^
  22. src/parser/AST.h:386:18: error: 'virtual void ASTVisitor::caseFloat(ASTFloat&, void*)' cannot be overloaded
  23.      virtual void caseFloat(ASTFloat &, void *param) {caseDefault(param);}
  24.                   ^
  25. src/parser/AST.h:126:18: error: with 'virtual void ASTVisitor::caseFloat(ASTFloat&, void*)'
  26.      virtual void caseFloat(ASTFloat &, void *param)
  27.                   ^
  28. src/parser/AST.h:387:18: error: 'virtual void ASTVisitor::caseString(ASTString&, void*)' cannot be overloaded
  29.      virtual void caseString(ASTString &, void *param) {caseDefault(param);}
  30.                   ^
  31. src/parser/AST.h:130:18: error: with 'virtual void ASTVisitor::caseString(ASTString&, void*)'
  32.      virtual void caseString(ASTString &, void *param)
  33.                   ^
  34. src/parser/AST.h:389:18: error: 'virtual void ASTVisitor::caseBlock(ASTBlock&, void*)' cannot be overloaded
  35.      virtual void caseBlock(ASTBlock &, void *param) {caseDefault(param);}
  36.                   ^
  37. src/parser/AST.h:282:18: error: with 'virtual void ASTVisitor::caseBlock(ASTBlock&, void*)'
  38.      virtual void caseBlock(ASTBlock &, void *param)
  39.                   ^
  40. src/parser/AST.h:390:18: error: 'virtual void ASTVisitor::caseStmtAssign(ASTStmtAssign&, void*)' cannot be overloaded
  41.      virtual void caseStmtAssign(ASTStmtAssign &, void *param) {caseDefault(param);}
  42.                   ^
  43. src/parser/AST.h:286:18: error: with 'virtual void ASTVisitor::caseStmtAssign(ASTStmtAssign&, void*)'
  44.      virtual void caseStmtAssign(ASTStmtAssign &, void *param)
  45.                   ^
  46. src/parser/AST.h:391:18: error: 'virtual void ASTVisitor::caseStmtIf(ASTStmtIf&, void*)' cannot be overloaded
  47.      virtual void caseStmtIf(ASTStmtIf &, void *param) {caseDefault(param);}
  48.                   ^
  49. src/parser/AST.h:298:18: error: with 'virtual void ASTVisitor::caseStmtIf(ASTStmtIf&, void*)'
  50.      virtual void caseStmtIf(ASTStmtIf &, void *param)
  51.                   ^
  52. src/parser/AST.h:392:18: error: 'virtual void ASTVisitor::caseStmtIfElse(ASTStmtIfElse&, void*)' cannot be overloaded
  53.      virtual void caseStmtIfElse(ASTStmtIfElse &, void *param) {caseDefault(param);}
  54.                   ^
  55. src/parser/AST.h:302:18: error: with 'virtual void ASTVisitor::caseStmtIfElse(ASTStmtIfElse&, void*)'
  56.      virtual void caseStmtIfElse(ASTStmtIfElse &, void *param)
  57.                   ^
  58. src/parser/AST.h:395:18: error: 'virtual void ASTVisitor::caseStmtFor(ASTStmtFor&, void*)' cannot be overloaded
  59.      virtual void caseStmtFor(ASTStmtFor &, void *param) {caseDefault(param);}
  60.                   ^
  61. src/parser/AST.h:294:18: error: with 'virtual void ASTVisitor::caseStmtFor(ASTStmtFor&, void*)'
  62.      virtual void caseStmtFor(ASTStmtFor &, void *param)
  63.                   ^
  64. src/parser/AST.h:396:18: error: 'virtual void ASTVisitor::caseStmtWhile(ASTStmtWhile&, void*)' cannot be overloaded
  65.      virtual void caseStmtWhile(ASTStmtWhile &, void *param) {caseDefault(param);}
  66.                   ^
  67. src/parser/AST.h:322:18: error: with 'virtual void ASTVisitor::caseStmtWhile(ASTStmtWhile&, void*)'
  68.      virtual void caseStmtWhile(ASTStmtWhile &, void *param)
  69.                   ^
  70. src/parser/AST.h:397:18: error: 'virtual void ASTVisitor::caseStmtDo(ASTStmtDo&, void*)' cannot be overloaded
  71.      virtual void caseStmtDo(ASTStmtDo &, void *param) {caseDefault(param);}
  72.                   ^
  73. src/parser/AST.h:326:18: error: with 'virtual void ASTVisitor::caseStmtDo(ASTStmtDo&, void*)'
  74.      virtual void caseStmtDo(ASTStmtDo &, void *param)
  75.                   ^
  76. src/parser/AST.h:398:18: error: 'virtual void ASTVisitor::caseStmtReturn(ASTStmtReturn&, void*)' cannot be overloaded
  77.      virtual void caseStmtReturn(ASTStmtReturn &, void *param) {caseDefault(param);}
  78.                   ^
  79. src/parser/AST.h:306:18: error: with 'virtual void ASTVisitor::caseStmtReturn(ASTStmtReturn&, void*)'
  80.      virtual void caseStmtReturn(ASTStmtReturn &, void *param)
  81.                   ^
  82. src/parser/AST.h:399:18: error: 'virtual void ASTVisitor::caseStmtReturnVal(ASTStmtReturnVal&, void*)' cannot be overloaded
  83.      virtual void caseStmtReturnVal(ASTStmtReturnVal &, void *param) {caseDefault(param);}
  84.                   ^
  85. src/parser/AST.h:310:18: error: with 'virtual void ASTVisitor::caseStmtReturnVal(ASTStmtReturnVal&, void*)'
  86.      virtual void caseStmtReturnVal(ASTStmtReturnVal &, void *param)
  87.                   ^
  88. src/parser/AST.h:400:18: error: 'virtual void ASTVisitor::caseStmtBreak(ASTStmtBreak&, void*)' cannot be overloaded
  89.      virtual void caseStmtBreak(ASTStmtBreak &, void *param) {caseDefault(param);}
  90.                   ^
  91. src/parser/AST.h:374:18: error: with 'virtual void ASTVisitor::caseStmtBreak(ASTStmtBreak&, void*)'
  92.      virtual void caseStmtBreak(ASTStmtBreak &, void *param)
  93.                   ^
  94. src/parser/AST.h:401:18: error: 'virtual void ASTVisitor::caseStmtContinue(ASTStmtContinue&, void*)' cannot be overloaded
  95.      virtual void caseStmtContinue(ASTStmtContinue &, void *param) {caseDefault(param);}
  96.                   ^
  97. src/parser/AST.h:378:18: error: with 'virtual void ASTVisitor::caseStmtContinue(ASTStmtContinue&, void*)'
  98.      virtual void caseStmtContinue(ASTStmtContinue &, void *param)
  99.                   ^
  100. src/parser/AST.h:402:18: error: 'virtual void ASTVisitor::caseStmtEmpty(ASTStmtEmpty&, void*)' cannot be overloaded
  101.      virtual void caseStmtEmpty(ASTStmtEmpty &, void *param) {caseDefault(param);}
  102.                   ^
  103. src/parser/AST.h:314:18: error: with 'virtual void ASTVisitor::caseStmtEmpty(ASTStmtEmpty&, void*)'
  104.      virtual void caseStmtEmpty(ASTStmtEmpty &, void *param)
  105.                   ^
  106. src/parser/AST.h:404:18: error: 'virtual void ASTVisitor::caseScript(ASTScript&, void*)' cannot be overloaded
  107.      virtual void caseScript(ASTScript &, void *param) {caseDefault(param);}
  108.                   ^
  109. src/parser/AST.h:318:18: error: with 'virtual void ASTVisitor::caseScript(ASTScript&, void*)'
  110.      virtual void caseScript(ASTScript &, void *param)
  111.                   ^
  112. src/parser/AST.h:405:18: error: 'virtual void ASTVisitor::caseDeclList(ASTDeclList&, void*)' cannot be overloaded
  113.      virtual void caseDeclList(ASTDeclList &, void *param) {caseDefault(param);}
  114.                   ^
  115. src/parser/AST.h:134:18: error: with 'virtual void ASTVisitor::caseDeclList(ASTDeclList&, void*)'
  116.      virtual void caseDeclList(ASTDeclList &, void *param)
  117.                   ^
  118. src/parser/AST.h:406:18: error: 'virtual void ASTVisitor::caseImportDecl(ASTImportDecl&, void*)' cannot be overloaded
  119.      virtual void caseImportDecl(ASTImportDecl &, void *param) {caseDefault(param);}
  120.                   ^
  121. src/parser/AST.h:138:18: error: with 'virtual void ASTVisitor::caseImportDecl(ASTImportDecl&, void*)'
  122.      virtual void caseImportDecl(ASTImportDecl &, void *param)
  123.                   ^
  124. src/parser/AST.h:407:18: error: 'virtual void ASTVisitor::caseConstDecl(ASTConstDecl&, void*)' cannot be overloaded
  125.      virtual void caseConstDecl(ASTConstDecl &, void *param) {caseDefault(param);}
  126.                   ^
  127. src/parser/AST.h:142:18: error: with 'virtual void ASTVisitor::caseConstDecl(ASTConstDecl&, void*)'
  128.      virtual void caseConstDecl(ASTConstDecl &, void *param)
  129.                   ^
  130. src/parser/AST.h:408:18: error: 'virtual void ASTVisitor::caseFuncDecl(ASTFuncDecl&, void*)' cannot be overloaded
  131.      virtual void caseFuncDecl(ASTFuncDecl &, void *param) {caseDefault(param);}
  132.                   ^
  133. src/parser/AST.h:146:18: error: with 'virtual void ASTVisitor::caseFuncDecl(ASTFuncDecl&, void*)'
  134.      virtual void caseFuncDecl(ASTFuncDecl &, void *param)
  135.                   ^
  136. src/parser/AST.h:409:18: error: 'virtual void ASTVisitor::caseArrayDecl(ASTArrayDecl&, void*)' cannot be overloaded
  137.      virtual void caseArrayDecl(ASTArrayDecl &, void *param) {caseDefault(param);}
  138.                   ^
  139. src/parser/AST.h:150:18: error: with 'virtual void ASTVisitor::caseArrayDecl(ASTArrayDecl&, void*)'
  140.      virtual void caseArrayDecl(ASTArrayDecl &, void *param)
  141.                   ^
  142. src/parser/AST.h:411:18: error: 'virtual void ASTVisitor::caseVarDecl(ASTVarDecl&, void*)' cannot be overloaded
  143.      virtual void caseVarDecl(ASTVarDecl &, void *param) {caseDefault(param);}
  144.                   ^
  145. src/parser/AST.h:194:18: error: with 'virtual void ASTVisitor::caseVarDecl(ASTVarDecl&, void*)'
  146.      virtual void caseVarDecl(ASTVarDecl &, void *param)
  147.                   ^
  148. src/parser/AST.h:412:18: error: 'virtual void ASTVisitor::caseVarDeclInitializer(ASTVarDeclInitializer&, void*)' cannot be overloaded
  149.      virtual void caseVarDeclInitializer(ASTVarDeclInitializer &, void *param) {caseDefault(param);}
  150.                   ^
  151. src/parser/AST.h:198:18: error: with 'virtual void ASTVisitor::caseVarDeclInitializer(ASTVarDeclInitializer&, void*)'
  152.      virtual void caseVarDeclInitializer(ASTVarDeclInitializer &, void *param)
  153.                   ^
  154. src/parser/AST.h:414:32: error: 'ASTExprConst' has not been declared
  155.      virtual void caseExprConst(ASTExprConst &, void *param) {caseDefault(param);}
  156.                                 ^
  157. src/parser/AST.h:415:18: error: 'virtual void ASTVisitor::caseNumConstant(ASTNumConstant&, void*)' cannot be overloaded
  158.      virtual void caseNumConstant(ASTNumConstant &, void *param) {caseDefault(param);}
  159.                   ^
  160. src/parser/AST.h:266:18: error: with 'virtual void ASTVisitor::caseNumConstant(ASTNumConstant&, void*)'
  161.      virtual void caseNumConstant(ASTNumConstant &, void *param)
  162.                   ^
  163. src/parser/AST.h:416:18: error: 'virtual void ASTVisitor::caseBoolConstant(ASTBoolConstant&, void*)' cannot be overloaded
  164.      virtual void caseBoolConstant(ASTBoolConstant &, void *param) {caseDefault(param);}
  165.                   ^
  166. src/parser/AST.h:278:18: error: with 'virtual void ASTVisitor::caseBoolConstant(ASTBoolConstant&, void*)'
  167.      virtual void caseBoolConstant(ASTBoolConstant &, void *param)
  168.                   ^
  169. src/parser/AST.h:417:18: error: 'virtual void ASTVisitor::caseExprDot(ASTExprDot&, void*)' cannot be overloaded
  170.      virtual void caseExprDot(ASTExprDot &, void *param) {caseDefault(param);}
  171.                   ^
  172. src/parser/AST.h:290:18: error: with 'virtual void ASTVisitor::caseExprDot(ASTExprDot&, void*)'
  173.      virtual void caseExprDot(ASTExprDot &, void *param)
  174.                   ^
  175. src/parser/AST.h:418:18: error: 'virtual void ASTVisitor::caseExprArrow(ASTExprArrow&, void*)' cannot be overloaded
  176.      virtual void caseExprArrow(ASTExprArrow &, void *param) {caseDefault(param);}
  177.                   ^
  178. src/parser/AST.h:254:18: error: with 'virtual void ASTVisitor::caseExprArrow(ASTExprArrow&, void*)'
  179.      virtual void caseExprArrow(ASTExprArrow &, void *param)
  180.                   ^
  181. src/parser/AST.h:419:18: error: 'virtual void ASTVisitor::caseExprArray(ASTExprArray&, void*)' cannot be overloaded
  182.      virtual void caseExprArray(ASTExprArray &, void *param) {caseDefault(param);}
  183.                   ^
  184. src/parser/AST.h:258:18: error: with 'virtual void ASTVisitor::caseExprArray(ASTExprArray&, void*)'
  185.      virtual void caseExprArray(ASTExprArray &, void *param)
  186.                   ^
  187. src/parser/AST.h:420:18: error: 'virtual void ASTVisitor::caseFuncCall(ASTFuncCall&, void*)' cannot be overloaded
  188.      virtual void caseFuncCall(ASTFuncCall &, void *param) {caseDefault(param);}
  189.                   ^
  190. src/parser/AST.h:270:18: error: with 'virtual void ASTVisitor::caseFuncCall(ASTFuncCall&, void*)'
  191.      virtual void caseFuncCall(ASTFuncCall &, void *param)
  192.                   ^
  193. src/parser/AST.h:421:18: error: 'virtual void ASTVisitor::caseExprNegate(ASTExprNegate&, void*)' cannot be overloaded
  194.      virtual void caseExprNegate(ASTExprNegate &, void *param) {caseDefault(param);}
  195.                   ^
  196. src/parser/AST.h:262:18: error: with 'virtual void ASTVisitor::caseExprNegate(ASTExprNegate&, void*)'
  197.      virtual void caseExprNegate(ASTExprNegate &, void *param)
  198.                   ^
  199. src/parser/AST.h:422:18: error: 'virtual void ASTVisitor::caseExprNot(ASTExprNot&, void*)' cannot be overloaded
  200.      virtual void caseExprNot(ASTExprNot &, void *param) {caseDefault(param);}
  201.                   ^
  202. src/parser/AST.h:250:18: error: with 'virtual void ASTVisitor::caseExprNot(ASTExprNot&, void*)'
  203.      virtual void caseExprNot(ASTExprNot &, void *param)
  204.                   ^
  205. src/parser/AST.h:423:18: error: 'virtual void ASTVisitor::caseExprBitNot(ASTExprBitNot&, void*)' cannot be overloaded
  206.      virtual void caseExprBitNot(ASTExprBitNot &, void *param) {caseDefault(param);}
  207.                   ^
  208. src/parser/AST.h:350:18: error: with 'virtual void ASTVisitor::caseExprBitNot(ASTExprBitNot&, void*)'
  209.      virtual void caseExprBitNot(ASTExprBitNot &, void *param)
  210.                   ^
  211. src/parser/AST.h:424:18: error: 'virtual void ASTVisitor::caseExprIncrement(ASTExprIncrement&, void*)' cannot be overloaded
  212.      virtual void caseExprIncrement(ASTExprIncrement &, void *param) {caseDefault(param);}
  213.                   ^
  214. src/parser/AST.h:354:18: error: with 'virtual void ASTVisitor::caseExprIncrement(ASTExprIncrement&, void*)'
  215.      virtual void caseExprIncrement(ASTExprIncrement &, void *param)
  216.                   ^
  217. src/parser/AST.h:425:18: error: 'virtual void ASTVisitor::caseExprPreIncrement(ASTExprPreIncrement&, void*)' cannot be overloaded
  218.      virtual void caseExprPreIncrement(ASTExprPreIncrement &, void *param) {caseDefault(param);}
  219.                   ^
  220. src/parser/AST.h:358:18: error: with 'virtual void ASTVisitor::caseExprPreIncrement(ASTExprPreIncrement&, void*)'
  221.      virtual void caseExprPreIncrement(ASTExprPreIncrement &, void *param)
  222.                   ^
  223. src/parser/AST.h:426:18: error: 'virtual void ASTVisitor::caseExprDecrement(ASTExprDecrement&, void*)' cannot be overloaded
  224.      virtual void caseExprDecrement(ASTExprDecrement &, void *param) {caseDefault(param);}
  225.                   ^
  226. src/parser/AST.h:362:18: error: with 'virtual void ASTVisitor::caseExprDecrement(ASTExprDecrement&, void*)'
  227.      virtual void caseExprDecrement(ASTExprDecrement &, void *param)
  228.                   ^
  229. src/parser/AST.h:427:18: error: 'virtual void ASTVisitor::caseExprPreDecrement(ASTExprPreDecrement&, void*)' cannot be overloaded
  230.      virtual void caseExprPreDecrement(ASTExprPreDecrement &, void *param) {caseDefault(param);}
  231.                   ^
  232. src/parser/AST.h:366:18: error: with 'virtual void ASTVisitor::caseExprPreDecrement(ASTExprPreDecrement&, void*)'
  233.      virtual void caseExprPreDecrement(ASTExprPreDecrement &, void *param)
  234.                   ^
  235. src/parser/AST.h:428:18: error: 'virtual void ASTVisitor::caseExprAnd(ASTExprAnd&, void*)' cannot be overloaded
  236.      virtual void caseExprAnd(ASTExprAnd &, void *param) {caseDefault(param);}
  237.                   ^
  238. src/parser/AST.h:202:18: error: with 'virtual void ASTVisitor::caseExprAnd(ASTExprAnd&, void*)'
  239.      virtual void caseExprAnd(ASTExprAnd &, void *param)
  240.                   ^
  241. src/parser/AST.h:429:18: error: 'virtual void ASTVisitor::caseExprOr(ASTExprOr&, void*)' cannot be overloaded
  242.      virtual void caseExprOr(ASTExprOr &, void *param) {caseDefault(param);}
  243.                   ^
  244. src/parser/AST.h:206:18: error: with 'virtual void ASTVisitor::caseExprOr(ASTExprOr&, void*)'
  245.      virtual void caseExprOr(ASTExprOr &, void *param)
  246.                   ^
  247. src/parser/AST.h:430:18: error: 'virtual void ASTVisitor::caseExprGT(ASTExprGT&, void*)' cannot be overloaded
  248.      virtual void caseExprGT(ASTExprGT &, void *param) {caseDefault(param);}
  249.                   ^
  250. src/parser/AST.h:210:18: error: with 'virtual void ASTVisitor::caseExprGT(ASTExprGT&, void*)'
  251.      virtual void caseExprGT(ASTExprGT &, void *param)
  252.                   ^
  253. src/parser/AST.h:431:18: error: 'virtual void ASTVisitor::caseExprGE(ASTExprGE&, void*)' cannot be overloaded
  254.      virtual void caseExprGE(ASTExprGE &, void *param) {caseDefault(param);}
  255.                   ^
  256. src/parser/AST.h:214:18: error: with 'virtual void ASTVisitor::caseExprGE(ASTExprGE&, void*)'
  257.      virtual void caseExprGE(ASTExprGE &, void *param)
  258.                   ^
  259. src/parser/AST.h:432:18: error: 'virtual void ASTVisitor::caseExprLT(ASTExprLT&, void*)' cannot be overloaded
  260.      virtual void caseExprLT(ASTExprLT &, void *param) {caseDefault(param);}
  261.                   ^
  262. src/parser/AST.h:218:18: error: with 'virtual void ASTVisitor::caseExprLT(ASTExprLT&, void*)'
  263.      virtual void caseExprLT(ASTExprLT &, void *param)
  264.                   ^
  265. src/parser/AST.h:433:18: error: 'virtual void ASTVisitor::caseExprLE(ASTExprLE&, void*)' cannot be overloaded
  266.      virtual void caseExprLE(ASTExprLE &, void *param) {caseDefault(param);}
  267.                   ^
  268. src/parser/AST.h:222:18: error: with 'virtual void ASTVisitor::caseExprLE(ASTExprLE&, void*)'
  269.      virtual void caseExprLE(ASTExprLE &, void *param)
  270.                   ^
  271. src/parser/AST.h:434:18: error: 'virtual void ASTVisitor::caseExprEQ(ASTExprEQ&, void*)' cannot be overloaded
  272.      virtual void caseExprEQ(ASTExprEQ &, void *param) {caseDefault(param);}
  273.                   ^
  274. src/parser/AST.h:226:18: error: with 'virtual void ASTVisitor::caseExprEQ(ASTExprEQ&, void*)'
  275.      virtual void caseExprEQ(ASTExprEQ &, void *param)
  276.                   ^
  277. src/parser/AST.h:435:18: error: 'virtual void ASTVisitor::caseExprNE(ASTExprNE&, void*)' cannot be overloaded
  278.      virtual void caseExprNE(ASTExprNE &, void *param) {caseDefault(param);}
  279.                   ^
  280. src/parser/AST.h:230:18: error: with 'virtual void ASTVisitor::caseExprNE(ASTExprNE&, void*)'
  281.      virtual void caseExprNE(ASTExprNE &, void *param)
  282.                   ^
  283. src/parser/AST.h:436:18: error: 'virtual void ASTVisitor::caseExprPlus(ASTExprPlus&, void*)' cannot be overloaded
  284.      virtual void caseExprPlus(ASTExprPlus &, void *param) {caseDefault(param);}
  285.                   ^
  286. src/parser/AST.h:234:18: error: with 'virtual void ASTVisitor::caseExprPlus(ASTExprPlus&, void*)'
  287.      virtual void caseExprPlus(ASTExprPlus &, void *param)
  288.                   ^
  289. src/parser/AST.h:437:18: error: 'virtual void ASTVisitor::caseExprMinus(ASTExprMinus&, void*)' cannot be overloaded
  290.      virtual void caseExprMinus(ASTExprMinus &, void *param) {caseDefault(param);}
  291.                   ^
  292. src/parser/AST.h:238:18: error: with 'virtual void ASTVisitor::caseExprMinus(ASTExprMinus&, void*)'
  293.      virtual void caseExprMinus(ASTExprMinus &, void *param)
  294.                   ^
  295. src/parser/AST.h:438:18: error: 'virtual void ASTVisitor::caseExprTimes(ASTExprTimes&, void*)' cannot be overloaded
  296.      virtual void caseExprTimes(ASTExprTimes &, void *param) {caseDefault(param);}
  297.                   ^
  298. src/parser/AST.h:242:18: error: with 'virtual void ASTVisitor::caseExprTimes(ASTExprTimes&, void*)'
  299.      virtual void caseExprTimes(ASTExprTimes &, void *param)
  300.                   ^
  301. src/parser/AST.h:439:18: error: 'virtual void ASTVisitor::caseExprDivide(ASTExprDivide&, void*)' cannot be overloaded
  302.      virtual void caseExprDivide(ASTExprDivide &, void *param) {caseDefault(param);}
  303.                   ^
  304. src/parser/AST.h:246:18: error: with 'virtual void ASTVisitor::caseExprDivide(ASTExprDivide&, void*)'
  305.      virtual void caseExprDivide(ASTExprDivide &, void *param)
  306.                   ^
  307. src/parser/AST.h:440:18: error: 'virtual void ASTVisitor::caseExprModulo(ASTExprModulo&, void*)' cannot be overloaded
  308.      virtual void caseExprModulo(ASTExprModulo &, void *param) {caseDefault(param);}
  309.                   ^
  310. src/parser/AST.h:370:18: error: with 'virtual void ASTVisitor::caseExprModulo(ASTExprModulo&, void*)'
  311.      virtual void caseExprModulo(ASTExprModulo &, void *param)
  312.                   ^
  313. src/parser/AST.h:441:18: error: 'virtual void ASTVisitor::caseExprBitAnd(ASTExprBitAnd&, void*)' cannot be overloaded
  314.      virtual void caseExprBitAnd(ASTExprBitAnd &, void *param) {caseDefault(param);}
  315.                   ^
  316. src/parser/AST.h:338:18: error: with 'virtual void ASTVisitor::caseExprBitAnd(ASTExprBitAnd&, void*)'
  317.      virtual void caseExprBitAnd(ASTExprBitAnd &, void *param)
  318.                   ^
  319. src/parser/AST.h:442:18: error: 'virtual void ASTVisitor::caseExprBitOr(ASTExprBitOr&, void*)' cannot be overloaded
  320.      virtual void caseExprBitOr(ASTExprBitOr &, void *param) {caseDefault(param);}
  321.                   ^
  322. src/parser/AST.h:330:18: error: with 'virtual void ASTVisitor::caseExprBitOr(ASTExprBitOr&, void*)'
  323.      virtual void caseExprBitOr(ASTExprBitOr &, void *param)
  324.                   ^
  325. src/parser/AST.h:443:18: error: 'virtual void ASTVisitor::caseExprBitXor(ASTExprBitXor&, void*)' cannot be overloaded
  326.      virtual void caseExprBitXor(ASTExprBitXor &, void *param) {caseDefault(param);}
  327.                   ^
  328. src/parser/AST.h:334:18: error: with 'virtual void ASTVisitor::caseExprBitXor(ASTExprBitXor&, void*)'
  329.      virtual void caseExprBitXor(ASTExprBitXor &, void *param)
  330.                   ^
  331. src/parser/AST.h:444:18: error: 'virtual void ASTVisitor::caseExprLShift(ASTExprLShift&, void*)' cannot be overloaded
  332.      virtual void caseExprLShift(ASTExprLShift &, void *param) {caseDefault(param);}
  333.                   ^
  334. src/parser/AST.h:342:18: error: with 'virtual void ASTVisitor::caseExprLShift(ASTExprLShift&, void*)'
  335.      virtual void caseExprLShift(ASTExprLShift &, void *param)
  336.                   ^
  337. src/parser/AST.h:445:18: error: 'virtual void ASTVisitor::caseExprRShift(ASTExprRShift&, void*)' cannot be overloaded
  338.      virtual void caseExprRShift(ASTExprRShift &, void *param) {caseDefault(param);}
  339.                   ^
  340. src/parser/AST.h:346:18: error: with 'virtual void ASTVisitor::caseExprRShift(ASTExprRShift&, void*)'
  341.      virtual void caseExprRShift(ASTExprRShift &, void *param)
  342.                   ^
  343. src/parser/AST.h:447:30: error: 'ASTScriptType' has not been declared
  344.   virtual void caseScriptType(ASTScriptType &, void* param) {caseDefault(param);}
  345.                               ^
  346. src/parser/AST.h:448:18: error: 'virtual void ASTVisitor::caseTypeVoid(ASTTypeVoid&, void*)' cannot be overloaded
  347.      virtual void caseTypeVoid(ASTTypeVoid &, void *param) {caseDefault(param);}
  348.                   ^
  349. src/parser/AST.h:162:18: error: with 'virtual void ASTVisitor::caseTypeVoid(ASTTypeVoid&, void*)'
  350.      virtual void caseTypeVoid(ASTTypeVoid &, void *param)
  351.                   ^
  352. src/parser/AST.h:449:18: error: 'virtual void ASTVisitor::caseTypeGlobal(ASTTypeGlobal&, void*)' cannot be overloaded
  353.      virtual void caseTypeGlobal(ASTTypeGlobal &, void *param) {caseDefault(param);}
  354.                   ^
  355. src/parser/AST.h:190:18: error: with 'virtual void ASTVisitor::caseTypeGlobal(ASTTypeGlobal&, void*)'
  356.      virtual void caseTypeGlobal(ASTTypeGlobal &, void *param)
  357.                   ^
  358. src/parser/AST.h:450:18: error: 'virtual void ASTVisitor::caseTypeFloat(ASTTypeFloat&, void*)' cannot be overloaded
  359.      virtual void caseTypeFloat(ASTTypeFloat &, void *param) {caseDefault(param);}
  360.                   ^
  361. src/parser/AST.h:154:18: error: with 'virtual void ASTVisitor::caseTypeFloat(ASTTypeFloat&, void*)'
  362.      virtual void caseTypeFloat(ASTTypeFloat &, void *param)
  363.                   ^
  364. src/parser/AST.h:451:18: error: 'virtual void ASTVisitor::caseTypeBool(ASTTypeBool&, void*)' cannot be overloaded
  365.      virtual void caseTypeBool(ASTTypeBool &, void *param) {caseDefault(param);}
  366.                   ^
  367. src/parser/AST.h:158:18: error: with 'virtual void ASTVisitor::caseTypeBool(ASTTypeBool&, void*)'
  368.      virtual void caseTypeBool(ASTTypeBool &, void *param)
  369.                   ^
  370. src/parser/AST.h:452:18: error: 'virtual void ASTVisitor::caseTypeFFC(ASTTypeFFC&, void*)' cannot be overloaded
  371.      virtual void caseTypeFFC(ASTTypeFFC &, void *param) {caseDefault(param);}
  372.                   ^
  373. src/parser/AST.h:166:18: error: with 'virtual void ASTVisitor::caseTypeFFC(ASTTypeFFC&, void*)'
  374.      virtual void caseTypeFFC(ASTTypeFFC &, void *param)
  375.                   ^
  376. src/parser/AST.h:453:18: error: 'virtual void ASTVisitor::caseTypeItem(ASTTypeItem&, void*)' cannot be overloaded
  377.      virtual void caseTypeItem(ASTTypeItem &, void *param) {caseDefault(param);}
  378.                   ^
  379. src/parser/AST.h:170:18: error: with 'virtual void ASTVisitor::caseTypeItem(ASTTypeItem&, void*)'
  380.      virtual void caseTypeItem(ASTTypeItem &, void *param)
  381.                   ^
  382. src/parser/AST.h:454:18: error: 'virtual void ASTVisitor::caseTypeItemclass(ASTTypeItemclass&, void*)' cannot be overloaded
  383.      virtual void caseTypeItemclass(ASTTypeItemclass &, void *param) {caseDefault(param);}
  384.                   ^
  385. src/parser/AST.h:174:18: error: with 'virtual void ASTVisitor::caseTypeItemclass(ASTTypeItemclass&, void*)'
  386.      virtual void caseTypeItemclass(ASTTypeItemclass &, void *param)
  387.                   ^
  388. src/parser/AST.h:455:18: error: 'virtual void ASTVisitor::caseTypeNPC(ASTTypeNPC&, void*)' cannot be overloaded
  389.      virtual void caseTypeNPC(ASTTypeNPC &, void *param) {caseDefault(param);}
  390.                   ^
  391. src/parser/AST.h:178:18: error: with 'virtual void ASTVisitor::caseTypeNPC(ASTTypeNPC&, void*)'
  392.      virtual void caseTypeNPC(ASTTypeNPC &, void *param)
  393.                   ^
  394. src/parser/AST.h:456:18: error: 'virtual void ASTVisitor::caseTypeLWpn(ASTTypeLWpn&, void*)' cannot be overloaded
  395.      virtual void caseTypeLWpn(ASTTypeLWpn &, void *param) {caseDefault(param);}
  396.                   ^
  397. src/parser/AST.h:182:18: error: with 'virtual void ASTVisitor::caseTypeLWpn(ASTTypeLWpn&, void*)'
  398.      virtual void caseTypeLWpn(ASTTypeLWpn &, void *param)
  399.                   ^
  400. src/parser/AST.h:457:18: error: 'virtual void ASTVisitor::caseTypeEWpn(ASTTypeEWpn&, void*)' cannot be overloaded
  401.      virtual void caseTypeEWpn(ASTTypeEWpn &, void *param) {caseDefault(param);}
  402.                   ^
  403. src/parser/AST.h:186:18: error: with 'virtual void ASTVisitor::caseTypeEWpn(ASTTypeEWpn&, void*)'
  404.      virtual void caseTypeEWpn(ASTTypeEWpn &, void *param)
  405.                   ^
  406. src/parser/AST.h:581:7: error: redefinition of 'class ASTStmt'
  407.  class ASTStmt : public AST
  408.        ^
  409. src/parser/AST.h:496:7: error: previous definition of 'class ASTStmt'
  410.  class ASTStmt : public AST
  411.        ^
  412. src/parser/AST.h:688:15: error: 'ASTExprConst' has not been declared
  413.   void addCase(ASTExprConst* expr) {cases.push_back(expr);}
  414.                ^
  415. src/parser/AST.h:689:9: error: 'ASTExprConst' was not declared in this scope
  416.   vector<ASTExprConst*> & getCases() {return cases;}
  417.          ^
  418. src/parser/AST.h:689:22: error: template argument 1 is invalid
  419.   vector<ASTExprConst*> & getCases() {return cases;}
  420.                       ^
  421. src/parser/AST.h:689:22: error: template argument 2 is invalid
  422. src/parser/AST.h:690:9: error: 'ASTExprConst' was not declared in this scope
  423.   vector<ASTExprConst*> const & getCases() const {return cases;}
  424.          ^
  425. src/parser/AST.h:690:22: error: template argument 1 is invalid
  426.   vector<ASTExprConst*> const & getCases() const {return cases;}
  427.                       ^
  428. src/parser/AST.h:690:22: error: template argument 2 is invalid
  429. src/parser/AST.h:697:9: error: 'ASTExprConst' was not declared in this scope
  430.   vector<ASTExprConst*> cases;
  431.          ^
  432. src/parser/AST.h:697:22: error: template argument 1 is invalid
  433.   vector<ASTExprConst*> cases;
  434.                       ^
  435. src/parser/AST.h:697:22: error: template argument 2 is invalid
  436. src/parser/AST.h: In member function 'void ASTSwitchCases::addCase(int*)':
  437. src/parser/AST.h:688:42: error: request for member 'push_back' in '((ASTSwitchCases*)this)->ASTSwitchCases::cases', which is of non-class type 'int'
  438.   void addCase(ASTExprConst* expr) {cases.push_back(expr);}
  439.                                           ^
  440. src/parser/AST.h: In member function 'virtual void ASTStmtBreak::execute(ASTVisitor&, void*)':
  441. src/parser/AST.h:797:46: error: no matching function for call to 'ASTVisitor::caseString(ASTStmtBreak&, void*&)'
  442.          return visitor.caseString(*this,param);
  443.                                               ^
  444. src/parser/AST.h:130:18: note: candidate: virtual void ASTVisitor::caseString(ASTString&, void*)
  445.      virtual void caseString(ASTString &, void *param)
  446.                   ^
  447. src/parser/AST.h:130:18: note:   no known conversion for argument 1 from 'ASTStmtBreak' to 'ASTString&'
  448. src/parser/AST.h:797:46: error: return-statement with a value, in function returning 'void' [-fpermissive]
  449.          return visitor.caseString(*this,param);
  450.                                               ^
  451. src/parser/AST.h: At global scope:
  452. src/parser/AST.h:1681:16: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
  453.    bool isVar = false;
  454.                 ^
  455. src/parser/AST.h:1731:7: error: redefinition of 'class ASTBlock'
  456.  class ASTBlock : public ASTStmt
  457.        ^
  458. src/parser/AST.h:589:7: error: previous definition of 'class ASTBlock'
  459.  class ASTBlock : public ASTStmt
  460.        ^
  461. src/parser/AST.h:1759:7: error: redefinition of 'class ASTStmtAssign'
  462.  class ASTStmtAssign : public ASTStmt
  463.        ^
  464. src/parser/AST.h:610:7: error: previous definition of 'class ASTStmtAssign'
  465.  class ASTStmtAssign : public ASTStmt
  466.        ^
  467. src/parser/AST.h:1879:7: error: redefinition of 'class ASTStmtFor'
  468.  class ASTStmtFor : public ASTStmt
  469.        ^
  470. src/parser/AST.h:702:7: error: previous definition of 'class ASTStmtFor'
  471.  class ASTStmtFor : public ASTStmt
  472.        ^
  473. src/parser/AST.h:1921:7: error: redefinition of 'class ASTStmtIf'
  474.  class ASTStmtIf : public ASTStmt
  475.        ^
  476. src/parser/AST.h:628:7: error: previous definition of 'class ASTStmtIf'
  477.  class ASTStmtIf : public ASTStmt
  478.        ^
  479. src/parser/AST.h:1950:7: error: redefinition of 'class ASTStmtIfElse'
  480.  class ASTStmtIfElse : public ASTStmtIf
  481.        ^
  482. src/parser/AST.h:646:7: error: previous definition of 'class ASTStmtIfElse'
  483.  class ASTStmtIfElse : public ASTStmtIf
  484.        ^
  485. src/parser/AST.h:1974:7: error: redefinition of 'class ASTStmtReturn'
  486.  class ASTStmtReturn : public ASTStmt
  487.        ^
  488. src/parser/AST.h:760:7: error: previous definition of 'class ASTStmtReturn'
  489.  class ASTStmtReturn : public ASTStmt
  490.        ^
  491. src/parser/AST.h:1988:7: error: redefinition of 'class ASTStmtReturnVal'
  492.  class ASTStmtReturnVal : public ASTStmt
  493.        ^
  494. src/parser/AST.h:773:7: error: previous definition of 'class ASTStmtReturnVal'
  495.  class ASTStmtReturnVal : public ASTStmt
  496.        ^
  497. src/parser/AST.h:2011:7: error: redefinition of 'class ASTStmtBreak'
  498.  class ASTStmtBreak : public ASTStmt
  499.        ^
  500. src/parser/AST.h:789:7: error: previous definition of 'class ASTStmtBreak'
  501.  class ASTStmtBreak : public ASTStmt
  502.        ^
  503. In file included from src/parser/AST.cpp:3:0:
  504. src/parser/AST.h:2080:7: error: redefinition of 'class ASTStmtWhile'
  505.  class ASTStmtWhile : public ASTStmt
  506.        ^
  507. In file included from src/parser/AST.cpp:3:0:
  508. src/parser/AST.h:724:7: error: previous definition of 'class ASTStmtWhile'
  509.  class ASTStmtWhile : public ASTStmt
  510.        ^
  511. In file included from src/parser/AST.cpp:3:0:
  512. src/parser/AST.h:2109:7: error: redefinition of 'class ASTStmtDo'
  513.  class ASTStmtDo : public ASTStmt
  514.        ^
  515. In file included from src/parser/AST.cpp:3:0:
  516. src/parser/AST.h:742:7: error: previous definition of 'class ASTStmtDo'
  517.  class ASTStmtDo : public ASTStmt
  518.        ^
  519. src/parser/AST.cpp:11:33: error: no 'ASTProgram* ASTProgram::clone() const' member function declared in class 'ASTProgram'
  520.  ASTProgram* ASTProgram::clone() const
  521.                                  ^
  522. src/parser/AST.cpp:20:1: error: redefinition of 'ASTFloat::ASTFloat(char*, int, LocationData)'
  523.  ASTFloat::ASTFloat(char *Value, int Type, LocationData Loc)
  524.  ^
  525. In file included from src/parser/AST.cpp:3:0:
  526. src/parser/AST.h:526:5: note: 'ASTFloat::ASTFloat(char*, int, LocationData)' previously defined here
  527.      ASTFloat(char *Value, int Type, LocationData Loc) : AST(Loc), type(Type), negative(false)
  528.      ^
  529. src/parser/AST.cpp:24:1: error: redefinition of 'ASTFloat::ASTFloat(const char*, int, LocationData)'
  530.  ASTFloat::ASTFloat(const char *Value, int Type, LocationData Loc)
  531.  ^
  532. In file included from src/parser/AST.cpp:3:0:
  533. src/parser/AST.h:530:5: note: 'ASTFloat::ASTFloat(const char*, int, LocationData)' previously defined here
  534.      ASTFloat(const char *Value, int Type, LocationData Loc) : AST(Loc), type(Type), negative(false)
  535.      ^
  536. src/parser/AST.cpp:28:1: error: prototype for 'ASTFloat::ASTFloat(std::__cxx11::string, int, LocationData)' does not match any in class 'ASTFloat'
  537.  ASTFloat::ASTFloat(string Value, int Type, LocationData Loc)
  538.  ^
  539. In file included from src/parser/AST.cpp:3:0:
  540. src/parser/AST.h:523:7: error: candidates are: ASTFloat::ASTFloat(ASTFloat&)
  541.  class ASTFloat : public AST
  542.        ^
  543. src/parser/AST.h:534:5: error:                 ASTFloat::ASTFloat(long int, int, LocationData)
  544.      ASTFloat(long Value, int Type, LocationData Loc) : AST(Loc), type(Type), negative(false)
  545.      ^
  546. src/parser/AST.h:530:5: error:                 ASTFloat::ASTFloat(const char*, int, LocationData)
  547.      ASTFloat(const char *Value, int Type, LocationData Loc) : AST(Loc), type(Type), negative(false)
  548.      ^
  549. src/parser/AST.h:526:5: error:                 ASTFloat::ASTFloat(char*, int, LocationData)
  550.      ASTFloat(char *Value, int Type, LocationData Loc) : AST(Loc), type(Type), negative(false)
  551.      ^
  552. src/parser/AST.cpp:32:1: error: redefinition of 'ASTFloat::ASTFloat(long int, int, LocationData)'
  553.  ASTFloat::ASTFloat(long Value, int Type, LocationData Loc)
  554.  ^
  555. In file included from src/parser/AST.cpp:3:0:
  556. src/parser/AST.h:534:5: note: 'ASTFloat::ASTFloat(long int, int, LocationData)' previously defined here
  557.      ASTFloat(long Value, int Type, LocationData Loc) : AST(Loc), type(Type), negative(false)
  558.      ^
  559. src/parser/AST.cpp:40:29: error: no 'ASTFloat* ASTFloat::clone() const' member function declared in class 'ASTFloat'
  560.  ASTFloat* ASTFloat::clone() const
  561.                              ^
  562. src/parser/AST.cpp: In member function 'ASTString* ASTString::clone() const':
  563. src/parser/AST.cpp:148:40: error: passing 'const ASTString' as 'this' argument discards qualifiers [-fpermissive]
  564.   return new ASTString(str, getLocation());
  565.                                         ^
  566. In file included from src/parser/AST.cpp:3:0:
  567. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  568.      LocationData &getLocation()
  569.                    ^
  570. src/parser/AST.cpp: In member function 'ASTBlock* ASTBlock::clone() const':
  571. src/parser/AST.cpp:172:41: error: passing 'const ASTBlock' as 'this' argument discards qualifiers [-fpermissive]
  572.   ASTBlock* c = new ASTBlock(getLocation());
  573.                                          ^
  574. In file included from src/parser/AST.cpp:3:0:
  575. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  576.      LocationData &getLocation()
  577.                    ^
  578. src/parser/AST.cpp:174:34: error: 'class ASTStmt' has no member named 'clone'
  579.    c->statements.push_back((*it)->clone());
  580.                                   ^
  581. src/parser/AST.cpp: In member function 'ASTStmtAssign* ASTStmtAssign::clone() const':
  582. src/parser/AST.cpp:196:25: error: 'class ASTStmt' has no member named 'clone'
  583.     lval != NULL ? lval->clone() : NULL,
  584.                          ^
  585. src/parser/AST.cpp:197:25: error: 'class ASTExpr' has no member named 'clone'
  586.     rval != NULL ? rval->clone() : NULL,
  587.                          ^
  588. src/parser/AST.cpp:198:16: error: passing 'const ASTStmtAssign' as 'this' argument discards qualifiers [-fpermissive]
  589.     getLocation());
  590.                 ^
  591. In file included from src/parser/AST.cpp:3:0:
  592. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  593.      LocationData &getLocation()
  594.                    ^
  595. src/parser/AST.cpp: In member function 'ASTStmtIf* ASTStmtIf::clone() const':
  596. src/parser/AST.cpp:212:25: error: 'class ASTExpr' has no member named 'clone'
  597.     cond != NULL ? cond->clone() : NULL,
  598.                          ^
  599. src/parser/AST.cpp:213:25: error: 'class ASTStmt' has no member named 'clone'
  600.     stmt != NULL ? stmt->clone() : NULL,
  601.                          ^
  602. src/parser/AST.cpp:214:16: error: passing 'const ASTStmtIf' as 'this' argument discards qualifiers [-fpermissive]
  603.     getLocation());
  604.                 ^
  605. In file included from src/parser/AST.cpp:3:0:
  606. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  607.      LocationData &getLocation()
  608.                    ^
  609. src/parser/AST.cpp: In member function 'ASTStmtIfElse* ASTStmtIfElse::clone() const':
  610. src/parser/AST.cpp:231:45: error: 'class ASTExpr' has no member named 'clone'
  611.     getCondition() != NULL ? getCondition()->clone() : NULL,
  612.                                              ^
  613. src/parser/AST.cpp:232:35: error: 'class ASTStmt' has no member named 'clone'
  614.     getStmt() != NULL ? getStmt()->clone() : NULL,
  615.                                    ^
  616. src/parser/AST.cpp:233:33: error: 'class ASTStmt' has no member named 'clone'
  617.     elsestmt != NULL ? elsestmt->clone() : NULL,
  618.                                  ^
  619. src/parser/AST.cpp:234:16: error: passing 'const ASTStmtIfElse' as 'this' argument discards qualifiers [-fpermissive]
  620.     getLocation());
  621.                 ^
  622. In file included from src/parser/AST.cpp:3:0:
  623. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  624.      LocationData &getLocation()
  625.                    ^
  626. src/parser/AST.cpp: In member function 'ASTStmtSwitch* ASTStmtSwitch::clone() const':
  627. src/parser/AST.cpp:248:51: error: passing 'const ASTStmtSwitch' as 'this' argument discards qualifiers [-fpermissive]
  628.   ASTStmtSwitch* c = new ASTStmtSwitch(getLocation());
  629.                                                    ^
  630. In file included from src/parser/AST.cpp:3:0:
  631. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  632.      LocationData &getLocation()
  633.                    ^
  634. src/parser/AST.cpp: In destructor 'virtual ASTSwitchCases::~ASTSwitchCases()':
  635. src/parser/AST.cpp:258:14: error: 'ASTExprConst' was not declared in this scope
  636.   for (vector<ASTExprConst*>::iterator it = cases.begin(); it != cases.end(); ++it)
  637.               ^
  638. src/parser/AST.cpp:258:27: error: template argument 1 is invalid
  639.   for (vector<ASTExprConst*>::iterator it = cases.begin(); it != cases.end(); ++it)
  640.                            ^
  641. src/parser/AST.cpp:258:27: error: template argument 2 is invalid
  642. src/parser/AST.cpp:258:39: error: qualified-id in declaration before 'it'
  643.   for (vector<ASTExprConst*>::iterator it = cases.begin(); it != cases.end(); ++it)
  644.                                        ^
  645. src/parser/AST.cpp:258:39: error: expected ';' before 'it'
  646. src/parser/AST.cpp:258:39: error: 'it' was not declared in this scope
  647. src/parser/AST.cpp:258:50: error: request for member 'begin' in '((ASTSwitchCases*)this)->ASTSwitchCases::cases', which is of non-class type 'int'
  648.   for (vector<ASTExprConst*>::iterator it = cases.begin(); it != cases.end(); ++it)
  649.                                                   ^
  650. src/parser/AST.cpp:258:71: error: request for member 'end' in '((ASTSwitchCases*)this)->ASTSwitchCases::cases', which is of non-class type 'int'
  651.   for (vector<ASTExprConst*>::iterator it = cases.begin(); it != cases.end(); ++it)
  652.                                                                        ^
  653. src/parser/AST.cpp:258:76: error: expected ')' before ';' token
  654.   for (vector<ASTExprConst*>::iterator it = cases.begin(); it != cases.end(); ++it)
  655.                                                                             ^
  656. src/parser/AST.cpp:258:80: error: 'it' was not declared in this scope
  657.   for (vector<ASTExprConst*>::iterator it = cases.begin(); it != cases.end(); ++it)
  658.                                                                                 ^
  659. src/parser/AST.cpp: In member function 'ASTSwitchCases* ASTSwitchCases::clone() const':
  660. src/parser/AST.cpp:265:53: error: passing 'const ASTSwitchCases' as 'this' argument discards qualifiers [-fpermissive]
  661.   ASTSwitchCases* c = new ASTSwitchCases(getLocation());
  662.                                                      ^
  663. In file included from src/parser/AST.cpp:3:0:
  664. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  665.      LocationData &getLocation()
  666.                    ^
  667. src/parser/AST.cpp:266:14: error: 'ASTExprConst' was not declared in this scope
  668.   for (vector<ASTExprConst*>::const_iterator it = cases.begin(); it != cases.end(); ++it)
  669.               ^
  670. src/parser/AST.cpp:266:27: error: template argument 1 is invalid
  671.   for (vector<ASTExprConst*>::const_iterator it = cases.begin(); it != cases.end(); ++it)
  672.                            ^
  673. src/parser/AST.cpp:266:27: error: template argument 2 is invalid
  674. src/parser/AST.cpp:266:45: error: qualified-id in declaration before 'it'
  675.   for (vector<ASTExprConst*>::const_iterator it = cases.begin(); it != cases.end(); ++it)
  676.                                              ^
  677. src/parser/AST.cpp:266:45: error: expected ';' before 'it'
  678. src/parser/AST.cpp:266:45: error: 'it' was not declared in this scope
  679. src/parser/AST.cpp:266:56: error: request for member 'begin' in '((const ASTSwitchCases*)this)->ASTSwitchCases::cases', which is of non-class type 'const int'
  680.   for (vector<ASTExprConst*>::const_iterator it = cases.begin(); it != cases.end(); ++it)
  681.                                                         ^
  682. src/parser/AST.cpp:266:77: error: request for member 'end' in '((const ASTSwitchCases*)this)->ASTSwitchCases::cases', which is of non-class type 'const int'
  683.   for (vector<ASTExprConst*>::const_iterator it = cases.begin(); it != cases.end(); ++it)
  684.                                                                              ^
  685. src/parser/AST.cpp:266:82: error: expected ')' before ';' token
  686.   for (vector<ASTExprConst*>::const_iterator it = cases.begin(); it != cases.end(); ++it)
  687.                                                                                   ^
  688. src/parser/AST.cpp:266:86: error: 'it' was not declared in this scope
  689.   for (vector<ASTExprConst*>::const_iterator it = cases.begin(); it != cases.end(); ++it)
  690.                                                                                       ^
  691. src/parser/AST.cpp: In member function 'ASTStmtFor* ASTStmtFor::clone() const':
  692. src/parser/AST.cpp:291:25: error: 'class ASTStmt' has no member named 'clone'
  693.     prec != NULL ? prec->clone() : NULL,
  694.                          ^
  695. src/parser/AST.cpp:292:25: error: 'class ASTExpr' has no member named 'clone'
  696.     term != NULL ? term->clone() : NULL,
  697.                          ^
  698. src/parser/AST.cpp:293:25: error: 'class ASTStmt' has no member named 'clone'
  699.     incr != NULL ? incr->clone() : NULL,
  700.                          ^
  701. src/parser/AST.cpp:294:25: error: 'class ASTStmt' has no member named 'clone'
  702.     stmt != NULL ? stmt->clone() : NULL,
  703.                          ^
  704. src/parser/AST.cpp:295:16: error: passing 'const ASTStmtFor' as 'this' argument discards qualifiers [-fpermissive]
  705.     getLocation());
  706.                 ^
  707. In file included from src/parser/AST.cpp:3:0:
  708. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  709.      LocationData &getLocation()
  710.                    ^
  711. src/parser/AST.cpp: In member function 'ASTStmtWhile* ASTStmtWhile::clone() const':
  712. src/parser/AST.cpp:313:25: error: 'class ASTExpr' has no member named 'clone'
  713.     cond != NULL ? cond->clone() : NULL,
  714.                          ^
  715. src/parser/AST.cpp:314:25: error: 'class ASTStmt' has no member named 'clone'
  716.     stmt != NULL ? stmt->clone() : NULL,
  717.                          ^
  718. src/parser/AST.cpp:315:16: error: passing 'const ASTStmtWhile' as 'this' argument discards qualifiers [-fpermissive]
  719.     getLocation());
  720.                 ^
  721. In file included from src/parser/AST.cpp:3:0:
  722. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  723.      LocationData &getLocation()
  724.                    ^
  725. src/parser/AST.cpp: In member function 'ASTStmtDo* ASTStmtDo::clone() const':
  726. src/parser/AST.cpp:333:25: error: 'class ASTExpr' has no member named 'clone'
  727.     cond != NULL ? cond->clone() : NULL,
  728.                          ^
  729. src/parser/AST.cpp:334:25: error: 'class ASTStmt' has no member named 'clone'
  730.     stmt != NULL ? stmt->clone() : NULL,
  731.                          ^
  732. src/parser/AST.cpp:335:16: error: passing 'const ASTStmtDo' as 'this' argument discards qualifiers [-fpermissive]
  733.     getLocation());
  734.                 ^
  735. In file included from src/parser/AST.cpp:3:0:
  736. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  737.      LocationData &getLocation()
  738.                    ^
  739. src/parser/AST.cpp: In member function 'ASTStmtReturn* ASTStmtReturn::clone() const':
  740. src/parser/AST.cpp:342:39: error: passing 'const ASTStmtReturn' as 'this' argument discards qualifiers [-fpermissive]
  741.   return new ASTStmtReturn(getLocation());
  742.                                        ^
  743. In file included from src/parser/AST.cpp:3:0:
  744. src/parser/AST.h:485:19: note:   in call to 'LocationData& AST::getLocation()'
  745.      LocationData &getLocation()
  746.                    ^
  747. src/parser/AST.cpp: At global scope:
  748. src/parser/AST.cpp:347:1: error: redefinition of 'ASTProgram::~ASTProgram()'
  749.  ASTProgram::~ASTProgram()
  750.  ^
  751. src/parser/AST.cpp:9:1: note: 'virtual ASTProgram::~ASTProgram()' previously defined here
  752.  ASTProgram::~ASTProgram() {delete decls;}
  753.  ^
  754. src/parser/AST.cpp:452:6: error: redefinition of 'void ASTBlock::addStatement(ASTStmt*)'
  755.  void ASTBlock::addStatement(ASTStmt *stmt)
  756.       ^
  757. src/parser/AST.cpp:180:6: note: 'void ASTBlock::addStatement(ASTStmt*)' previously defined here
  758.  void ASTBlock::addStatement(ASTStmt *stmt)
  759.       ^
  760. src/parser/AST.cpp:457:1: error: redefinition of 'ASTBlock::~ASTBlock()'
  761.  ASTBlock::~ASTBlock()
  762.  ^
  763. src/parser/AST.cpp:158:1: note: 'virtual ASTBlock::~ASTBlock()' previously defined here
  764.  ASTBlock::~ASTBlock()
  765.  ^
  766. src/parser/AST.cpp:475:22: error: redefinition of 'std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > ASTFloat::parseValue()'
  767.  pair<string, string> ASTFloat::parseValue()
  768.                       ^
  769. src/parser/AST.cpp:47:22: note: 'std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > ASTFloat::parseValue()' previously defined here
  770.  pair<string, string> ASTFloat::parseValue()
  771.                       ^
  772. make: *** [obj/parser/AST.o] Error 1
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×