Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368261

Summary: [fp] Incorrect "No return, in function returning non-void" from try / catch
Product: [Tools] CDT Reporter: Josh Kelley <joshkel>
Component: cdt-codanAssignee: CDT Codan Inbox <cdt-codan-inbox>
Status: CLOSED DUPLICATE QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle, rexdog2010, yevshif, zeratul976
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Josh Kelley CLA 2012-01-10 10:13:25 EST
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

For the following code, code analysis gives an incorrect "No return, in function returning non-void" error message:

double RPM();

double RPMnothrow()
{
  try {
    return RPM();
  } catch (...) {
    return 0.0;
  }
}


Reproducible: Always
Comment 1 Nathan Ridge CLA 2013-07-17 21:59:39 EDT
Duplicate of bug 348387.
Comment 2 Marc-André Laperle CLA 2013-07-18 00:01:32 EDT

*** This bug has been marked as a duplicate of bug 348387 ***