Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329597 - Function reference not found that uses "arithmetic if" logic for a parameter
Summary: Function reference not found that uses "arithmetic if" logic for a parameter
Status: CLOSED DUPLICATE of bug 324853
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 7.0.1   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-05 17:14 EDT by electoys CLA
Modified: 2010-11-11 03:23 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description electoys CLA 2010-11-05 17:14:02 EDT
Build Identifier: 20100318-1801

Eclipse CDT build id 201003151310.

code example: 
if (ecAPI.EcGet(anObjectId, 
                aCardType == NULL ? returnedCardType : *aCardType, 
                payload) != EC_RC_SUCCESS) 

In my case the EcGet method is overloaded.  There is only one declaration that takes a cardType parameter as the second argument.

There are two ways to experience this problem.  The more critical one is that this use is not shown when displaying references of the particular overloaded EcGet() function.  The second is when asking to open the declaration of the EcGet function from the above line of code.  Instead of jumping directly to the declaration, it provides a list of all the overloaded versions of the function.

Here are some more of the overloaded declarations.
  EcReturnedCodes EcGet( ObjectIdClass objectId,
                         CardTypes&    programmedCardType,
                         Ec::Payload&  payload);
  EcReturnedCodes EcGet( ObjectIdClass objectId,
                         Ec::Payload&  payload);
  EcReturnedCodes EcGet( ObjectIdClass objectId,
                         Ec::id_type   id,
                         U32&          data);
  EcReturnedCodes EcGet( ObjectIdClass objectId,
                         Ec::id_type   id,
                         std::string&  data);
  template <typename EcDataType>
  EcReturnedCodes EcGet( ObjectIdClass     objectId,
                         Ec::IdInfo const* pId,
                         EcDataType&       data);
template <>
EcReturnedCodes EcExtInterface::EcGet<std::string>(ObjectIdClass      objectId,
                                                   Ec::IdInfo const*  pId,
                                                   std::string&       data);
template <>
EcReturnedCodes EcExtInterface::EcGet<U32>(ObjectIdClass     objectId,
                                           Ec::IdInfo const* pId,
                                           U32&              data);


Reproducible: Always
Comment 1 Markus Schorn CLA 2010-11-11 03:23:43 EST
Looks like you are using CDT 7.0.1, correct?

Basically a duplicate of bug 324853. There may also be an additional problem. To check I'd need a valid sample code (It matters how the types involved are defined and how the variables used in the expression are declared).

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