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

Bug 368257

Summary: [fp] "Invalid arguments" from failing to evaluate boost::optional's implicit constructor
Product: [Tools] CDT Reporter: Josh Kelley <joshkel>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle
Version: 8.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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

Code analysis fails to evaluate boost::optional's implicit constructor and therefore gives a bogus "Invalid arguments" error for the following code:

void DoSomething(boost::optional<int> param);

int main(int, char**)
{
  DoSomething(1);
  return 0;
}


Reproducible: Always
Comment 1 Marc-André Laperle CLA 2012-01-15 04:59:22 EST
This works for me on the master branch as of today. Maybe this was fixed with
bug 197989?
Comment 2 Markus Schorn CLA 2012-01-16 09:23:39 EST
(In reply to comment #1)
> This works for me on the master branch as of today. Maybe this was fixed with
> bug 197989?
Most likely this is the case, tested with boost 1.46.1.

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