This is the mail archive of the gcc@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]

C++ (parser) regression?


Either I'm utterly confused, or the C++ parser on mainline was broken
recently (or I'm indeed confused and this was a GCC extension whose
removal was not documented in gcc-3.3/changes.html):

  % cat x.cc
  #include <set>

  using namespace std;

  class C : public set<int> {
      void add(const int i) {
          insert(i);
          }
      };

  % gccvs x.cc
  x.cc: In member function `void C::add(int)':
  x.cc:7: error: no matching function for call to `C::insert(const int&)'

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/



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