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++/11342] Method selection warning prevents compilation


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dan at photon dot com  2003-06-27 01:19 -------
Here's the test code:

class Foo
{
public:
  Foo();
  virtual ~Foo();
  operator const char*() const;

  char& operator[](unsigned i);
  char operator[](unsigned i) const;
};

void func()
{
  Foo s;
  char c = s[0];
}


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