http://llvm.org/bugs/show_bug.cgi?id=7228

           Summary: Unbalanced Bracket in -ast-dump
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


See the following program (written to expose this possible error). When I use
the command

clang -cc1 -ast-dump tryit.c

I get the output given below. It appears that the brackets around DeclStmt are
not balanced, making parsing impossible.

The output from the "clang -v" command is

clang version 2.0 (trunk 104588)
Target: i386-pc-linux-gnu
Thread model: posix

========sample program

int main()
    {
    int   x;

    x = 6;

    return 0;
    }

========output

typedef char *__builtin_va_list;
int main() (CompoundStmt 0x97dac08 <tryit.c:3:5, line:9:5>
  (DeclStmt 0x97f1980 <line:4:5, col:12>
    0x97dab80 "int x"
  (BinaryOperator 0x97f19b8 <line:6:2, col:6> 'int' '='
    (DeclRefExpr 0x97f1998 <col:2> 'int' Var='x' 0x97dab80)
    (IntegerLiteral 0x97e0df0 <col:6> 'int' 6))
  (ReturnStmt 0x97f1a08 <line:8:2, col:9>
    (IntegerLiteral 0x97f19e0 <col:9> 'int' 0)))

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to