http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53368

             Bug #: 53368
           Summary: [4.7/4.8 regression] c++11 reject-valid-code
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ppluzhni...@google.com


We've noticed this using 4.7 branch, confirmed exists in current trunk,
does not appear to exist in 4.6.

/// --- cut ---
// g++ -c -std=c++11 t.cc
// Fails: g++ (GCC) 4.8.0 20120515 (experimental)

class Message;  // comment out -> works

namespace proto {
struct Message {
  virtual void Copy(const Message&);
};
}

struct MessageSet: public proto::Message {
  // using Message::Copy;  // this works
  using proto::Message::Copy;
};
/// --- cut ---


$ g++ -c t.cc
$ g++ -c t.cc -std=c++11
t.cc:15:25: error: type 'Message' is not a base type for type 'MessageSet'
   using proto::Message::Copy;
                         ^

Reply via email to