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

c++/3283: using declaration of overloaded member function in derived class definition



>Number:         3283
>Category:       c++
>Synopsis:       using declaration of overloaded member function in derived class definition
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 20 02:06:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Maeder
>Release:        gcc version 3.0
>Organization:
>Environment:
NT4 cygwin
>Description:
/tmp.537 % g++ -c map.cpp
map.cpp: In member function `std::_Rb_tree_iterator<std::pair<const int, int>,
   std::pair<const int, int>&, std::pair<const int, int>*> S::f()':
map.cpp:6: conversion from `std::_Rb_tree_iterator<std::pair<const int, int>,
   const std::pair<const int, int>&, const std::pair<const int, int>*>' to
   non-scalar type `std::_Rb_tree_iterator<std::pair<const int, int>,
   std::pair<const int, int>&, std::pair<const int, int>*>' requested
>How-To-Repeat:
#include <map>
struct S : private std::map<int,int>
{
    using std::map<int,int>::end;
    iterator f() { return end(); }
    const_iterator g() { return end(); }
};
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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