[LLVMbugs] [Bug 14620] New: No "control reaches end of non-void function" when using function-try-blocks

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 17 01:34:36 PST 2012


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

             Bug #: 14620
           Summary: No "control reaches end of non-void function" when
                    using function-try-blocks
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: arsenm2 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9712
  --> http://llvm.org/bugs/attachment.cgi?id=9712
Test case

When using a function try block for a function, there is no warning for
reaching the end of the function.

The warning doesn't occur both when control reaches the end of the function
body, and when control reaches the end of the handler.

Attached is a test case.

clang++ -Wall -Wextra -Wreturn-type function_try_block_return_warning.cpp

-- 
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.



More information about the llvm-bugs mailing list