Bug 302252 - Eclipse doesn't show warning when access to private members of base class.
Summary: Eclipse doesn't show warning when access to private members of base class.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 6.0.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: CDT Codan Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-09 05:40 EST by Vasiliy Dybala CLA
Modified: 2020-01-19 23:15 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasiliy Dybala CLA 2010-02-09 05:40:31 EST
class B
{
private:
  int P;
};

class D : public B
{
  void func()
  {
    P = 1;
  }
};

P = 1; is not accessible because P is private member of base class B. But eclipse doesn't show error or warning about it.

-- Configuration Details --
Product: Eclipse 1.2.1.20090812-1036 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7
Comment 1 Anton Leherbauer CLA 2010-02-11 05:01:12 EST
This would be an enhancement.
Comment 2 Marco Stornelli CLA 2020-01-18 10:05:01 EST
Reassigned to codan component and revert the state to "new" from "assigned"
Comment 3 Marc-André Laperle CLA 2020-01-19 23:10:07 EST
Shouldn't this be taken care of by semantics code of the parser? Maybe it's just missing a ProblemBinding for that...
Comment 4 Nathan Ridge CLA 2020-01-19 23:15:58 EST
(In reply to Marc-André Laperle from comment #3)
> Shouldn't this be taken care of by semantics code of the parser? Maybe it's
> just missing a ProblemBinding for that...

There is some background on this in bug 263154.