[PATCH] [Patch] Fix for assertion when incomplete array type is used as template param

Eli Friedman eli.friedman at gmail.com
Thu Sep 19 14:17:22 PDT 2013


  This patch isn't right; we're not building the correct AST.  -ast-dump shows the following, which is clearly wrong:

    |   `-CompoundStmt 0x7fddf282f888 <line:5:13, line:9:1>
    |     |-DeclStmt 0x7fddf282f820 <line:7:1, col:23>
    |     | `-VarDecl 0x7fddf282f790 <col:1, col:3> t 'int []':'int []'
    |     |   `-ImplicitValueInitExpr 0x7fddf282f810 <<invalid sloc>> 'int []':'int []'

  Also, when you submit a patch, please include the testcase as a regression test in clang/test/.

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



More information about the cfe-commits mailing list