Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368261 - [fp] Incorrect "No return, in function returning non-void" from try / catch
Summary: [fp] Incorrect "No return, in function returning non-void" from try / catch
Status: CLOSED DUPLICATE of bug 348387
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CDT Codan Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 10:13 EST by Josh Kelley CLA
Modified: 2013-07-18 00:01 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***