[PATCH] Prevent gnu-expression-statements from clobbering potential lambda captures

Faisal Vali faisalv at yahoo.com
Wed Nov 13 09:19:14 PST 2013


  If we agree that if any individual child statement within the gcc-statement-expression node (StmtExpr) is instantiation dependent, then the StmtExpr should be instantiation dependent (same for type and value dependence too?? does the type or value dependence of any one node make the entire StmtExpr type or value dependent? seems odd to make the following type dependent ({b; 0;})), then i propose the following fix:
    - In ActOnStmtExpr - just prior to creating the StmtExpr - query instantiation dependence of each of the nodes - and as soon as we find one that is, ensure that it marks the StmtExpr as so?

  Thoughts?

http://llvm-reviews.chandlerc.com/D2170



More information about the cfe-commits mailing list