http://llvm.org/bugs/show_bug.cgi?id=17149
Bug ID: 17149
Summary: type 'int' assumed after parse error in return type
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
/mnt/space/build/llvm-3/src/tools/clang/lib/Parse/ParseTentative.cpp:563:1:
error: unknown type name 'TPResult'
TPResult Parser::TryParsePtrOperatorSeq() {
^
/mnt/space/build/llvm-3/src/tools/clang/lib/Parse/ParseTentative.cpp:567:16:
error: no viable conversion from 'clan
g::Parser::TPResult' to 'int'
return TPResult::Error();
^~~~~~~~~~~~~~~~~
[+ 20 more such diagnostics for later return statements]
This is awful. We should instead avoid checking the types of returned
expressions if we couldn't parse the return type.
--
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