This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,693 Users
  • 2,269,776 Discussions
  • 7,916,823 Comments

Discussions

Lifting a method with 'using' doesn't work in Studio 12.6

koval
koval Member Posts: 72 Blue Ribbon

Studio 12.6 gives errors when 'using' directive is used to make a method from private-inherited class accessible as public from derived class:

class A {public:    operator bool() const;};class B: private A {public:    using A::operator bool;};bool use(B b){    return !!b;} !!b;

Error:

line 15: Error: A::operator bool() const is not accessible from use(B).1 Error(s) detected.

Studio 12.5 compiled this example fine

Best Answer

  • Steve.Clamage-Oracle
    Steve.Clamage-Oracle Oracle Studio C++ Project Lead Santa Clara, CA, USAMember Posts: 775
    edited Aug 7, 2017 12:28PM Answer ✓

    Thanks again for reporting this additional problem. I have filed C++ compiler bug .26585049 for you.

    If you have a service contract with Oracle, you can request a fix in a patch, via your support channel. In any case, we will fix it as resources permit.

Answers

  • Steve.Clamage-Oracle
    Steve.Clamage-Oracle Oracle Studio C++ Project Lead Santa Clara, CA, USAMember Posts: 775
    edited Aug 7, 2017 12:28PM Answer ✓

    Thanks again for reporting this additional problem. I have filed C++ compiler bug .26585049 for you.

    If you have a service contract with Oracle, you can request a fix in a patch, via your support channel. In any case, we will fix it as resources permit.

This discussion has been closed.