Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367936 - Boost pointer container iterator auto-indirection causes false positive CODAN bug markers
Summary: Boost pointer container iterator auto-indirection causes false positive CODAN...
Status: CLOSED DUPLICATE of bug 197989
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 07:20 EST by Kim van der Riet CLA
Modified: 2012-01-10 03:05 EST (History)
2 users (show)

See Also:


Attachments
Reproducer illustrating syntax analysis problem (1.59 KB, text/x-c++src)
2012-01-05 07:25 EST, Kim van der Riet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim van der Riet CLA 2012-01-05 07:20:39 EST
Build Identifier: 201107251854

Code which makes use of boost pointer containers and which rely on the iterator auto-indirection feature of these containers are marked as bugs/errors. However, the code is correct and compiles without problems.

I have only tested iterator auto-indirection; other uses of these containers may also show such behavior.

A simple reproducer is attached.

Reproducible: Always

Steps to Reproduce:
See attached reproducer.
Comment 1 Kim van der Riet CLA 2012-01-05 07:25:18 EST
Created attachment 209066 [details]
Reproducer illustrating syntax analysis problem

Create a C++ project with this file as the source. See comments in source for further details.

This file does not do anything useful; it does compile successfully using g++.
Comment 2 Markus Schorn CLA 2012-01-05 08:47:24 EST
what version of CDT are you using?
Comment 3 Kim van der Riet CLA 2012-01-05 09:04:56 EST
Sorry, I thought the build id was sufficient. I am not an Eclipse insider, I find the different version numbers for all the CDT bits confusing, so I don't know which one you are looking for... 

I assume this is the one:
Eclipse C/C++ Development Tools  8.0.0.201106081058

but in case it is not, here are the other CDT bits listed:

C/C++ Remote Debug Launcher  6.0.0.201106081058
Eclipse GCC Cross Compiler Support 1.0.0.201106081058
Eclipse CDT P2 Customizations for SDK installation 1.0.0.201106081058
CDT Debugger Services Framework (DSF) Examples  2.1.0.201106081058
Eclipse C/C++ Development Tools  8.0.0.201106081058
Eclipse C/C++ Development Tools Utilities 5.1.0.201106081058
Eclipse GDB Hardware Debugging 7.0.0.201106081058
Eclipse Debugger for C/C++ 2.0.0.201106081058
GDB Common  7.0.0.201106081058
Comment 4 Markus Schorn CLA 2012-01-09 02:54:00 EST
Reproduced the problem (boost 1.46.1 and  CDT 8.0.1) and verified that it works on the master branch.

*** This bug has been marked as a duplicate of bug 187989 ***
Comment 5 Steffen Pingel CLA 2012-01-09 10:22:19 EST
I suspect the bug id got mixed up when marking the bug as a duplicate.
Comment 6 Markus Schorn CLA 2012-01-10 03:05:39 EST
(In reply to comment #5)
> I suspect the bug id got mixed up when marking the bug as a duplicate.
Thanks, I mistyped the bug id.

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