This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53368] New: [4.7/4.8 regression] c++11 reject-valid-code


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: unassigned@gcc.gnu.org
        ReportedBy: ppluzhnikov@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;
                         ^


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]