www.digitalmars.com         C & C++   DMDScript  

c++ - Broken using declaration when used on subscript operator

reply "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
class A
{
public:
    int operator [](int index) const;
};

class B
{
public:
    int operator [](int index) const;
};

class C
  : public A
  , public B
{
public:
    using A::operator [];
};




H:\STLSoft\Releases\1.9.x\STLSoft\unittest\build\dm>dmc 
using_subs.cpp
    using A::operator [];
                    ^



begin 666 using_subs.cpp
M#0HC9&5F:6YE(%1%4U1?4U5"4PT*#0IC;&%S<R!!#0I[#0IP=6)L:6,Z#0HC
M:69D968 5$535%]354)3#0H ("  :6YT(&]P97)A=&]R(%M=*&EN="!I;F1E
M>"D 8V]N<W0[#0HC96QS92 O*B _(#  *B\-"B  ("!I;G0 <W5B<RAI;G0 
M:6YD97 I(&-O;G-T.PT*(V5N9&EF("\J(#  *B\-"GT[#0H-"F-L87-S($(-
M"GL-"G!U8FQI8SH-"B-I9F1E9B!415-47U-50E,-"B  ("!I;G0 ;W!E<F%T
M;W( 6UTH:6YT(&EN9&5X*2!C;VYS=#L-"B-E;'-E("\J(#\ ," J+PT*("  
M(&EN="!S=6)S*&EN="!I;F1E>"D 8V]N<W0[#0HC96YD:68 +RH ," J+PT*
M?3L-" T*8VQA<W, 0PT*(" Z('!U8FQI8R!!#0H ("P <'5B;&EC($(-"GL-
M"G!U8FQI8SH-" T*(VEF9&5F(%1%4U1?4U5"4PT*("  ('5S:6YG($$Z.F]P
M97)A=&]R(%M=.PT*(V5L<V4 +RH /R P("HO#0H ("  =7-I;F< 03HZ<W5B
:<SL-"B-E;F1I9B O*B P("HO#0I].PT*#0H`
`
end
Aug 05 2005
parent "Matthew" <matthew hat.stlsoft.dot.org> writes:
Any traction on this bug?

"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
news:dd1jbu$s4c$1 digitaldaemon.com...
 class A
 {
 public:
     int operator [](int index) const;
 };

 class B
 {
 public:
     int operator [](int index) const;
 };

 class C
   : public A
   , public B
 {
 public:
     using A::operator [];
 };




 H:\STLSoft\Releases\1.9.x\STLSoft\unittest\build\dm>dmc
 using_subs.cpp
     using A::operator [];
                     ^
Sep 10 2005