Bug 268094 - Can't override virtual functions in protected section
Summary: Can't override virtual functions in protected section
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 23:55 UTC by Nikita Churaev
Modified: 2012-12-21 00:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Churaev 2011-03-09 23:55:18 UTC
Version:           unspecified
OS:                Linux

Let's say that I have a class:

//-------------------------------

class Application {
public:
  virtual void quit();

protected:
  virtual bool main();
};

//-------------------------------

Then I create derived class:

//-------------------------------

class Client : public Application {
public:
  // Ctrl+Space here offers me an option to override the function

protected:
  // Ctrl+Space here DOES NOT offer me an option to override the function
};

//-------------------------------

Reproducible: Always
Comment 1 Kevin Funk 2012-12-21 00:21:09 UTC
Works for me.