[LLVMbugs] [Bug 19037] New: Missing nodes in ForStmt
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 4 05:15:34 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=19037
Bug ID: 19037
Summary: Missing nodes in ForStmt
Product: clang
Version: 3.4
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: vpozdyayev at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Since null nodes are skipped while traversing the tree, it is impossible to
detect which form of a reduced for statement is in effect:
int main( int, char ** ) {
for( 0; ; )
break;
for( ; 0; )
break;
for( ; ; 0 )
break;
}
Quoting from a tree dump:
COMPOUND_STMT @ (1, 26) (id=6, can=6 ())
FOR_STMT @ (2, 2) (id=7, can=7 ())
INTEGER_LITERAL @ (2, 7) (id=8, can=8 (), type={INT, tid=5, tcan=5})
BREAK_STMT @ (3, 3) (id=9, can=9 ())
FOR_STMT @ (4, 2) (id=10, can=10 ())
UNEXPOSED_EXPR @ (4, 9) (id=11, can=11 (), type={BOOL, tid=7, tcan=7})
INTEGER_LITERAL @ (4, 9) (id=12, can=12 (), type={INT, tid=5, tcan=5})
BREAK_STMT @ (5, 3) (id=13, can=13 ())
FOR_STMT @ (6, 2) (id=14, can=14 ())
INTEGER_LITERAL @ (6, 11) (id=15, can=15 (), type={INT, tid=5, tcan=5})
BREAK_STMT @ (7, 3) (id=16, can=16 ())
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140304/c9fc14af/attachment.html>
More information about the llvm-bugs
mailing list