[LLVMbugs] [Bug 17149] New: type 'int' assumed after parse error in return type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 7 15:41:39 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130907/2a7821e6/attachment.html>


More information about the llvm-bugs mailing list