public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11342] New: Method selection warning prevents compilation
@ 2003-06-27  1:06 dan at photon dot com
  2003-06-27  1:19 ` [Bug c++/11342] " dan at photon dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dan at photon dot com @ 2003-06-27  1:06 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Method selection warning prevents compilation
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dan at photon dot com
                CC: gcc-bugs at gcc dot gnu dot org

In certain cases, I have source code that generates the following warning:

test.cpp In member function 'xxxx':
test.cpp:xx choosing 'char& String::operator[](unsigned int)' over 'operator[] '
test.cpp:xx   because worst conversion for the former is better than worst 
   conversion for the latter

I've gotten a test case pruned down to the class with the offending methods
(char& String::operator[](unsigned int) and char String::operator[](unsigned
int) const). But if I strip out everything in the class except for the methods,
the warning goes away. I will keep at it to create a simple test case an attach
it later.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-27 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-27  1:06 [Bug c++/11342] New: Method selection warning prevents compilation dan at photon dot com
2003-06-27  1:19 ` [Bug c++/11342] " dan at photon dot com
2003-06-27  1:36 ` dan at photon dot com
2003-06-27 14:11 ` bangerth at dealii dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).