public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53152] New: In "no match for operatorXX" error message, mention the types of the arguments
@ 2012-04-28  6:38 zeratul976 at hotmail dot com
  2012-04-28  7:26 ` [Bug c++/53152] In "no match for operatorXX" error message gives the wrong column info pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zeratul976 at hotmail dot com @ 2012-04-28  6:38 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53152
           Summary: In "no match for operatorXX" error message, mention
                    the types of the arguments
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zeratul976@hotmail.com


Consider the following code:

struct T {};

struct S
{
    T foo();
};

int main()
{
    S a, b;
    a.foo() == b.foo();
}


The error message is:

error: no match for 'operator==' in 'a.S::foo() == b.S::foo()'


Notice the error doesn't mention 'T' anywhere. It would be nice if it did,
because in the general case the arguments passed to the operator could be
arbitrarily complex expressions, and working out their type manually can be
tedious.


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

end of thread, other threads:[~2012-05-06 15:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-28  6:38 [Bug c++/53152] New: In "no match for operatorXX" error message, mention the types of the arguments zeratul976 at hotmail dot com
2012-04-28  7:26 ` [Bug c++/53152] In "no match for operatorXX" error message gives the wrong column info pinskia at gcc dot gnu.org
2012-04-28 19:55 ` redi at gcc dot gnu.org
2012-05-04 10:57 ` paolo.carlini at oracle dot com
2012-05-04 11:27 ` manu at gcc dot gnu.org
2012-05-04 12:31 ` paolo.carlini at oracle dot com
2012-05-04 12:32 ` paolo.carlini at oracle dot com
2012-05-06 15:07 ` paolo at gcc dot gnu.org
2012-05-06 15:40 ` paolo.carlini at oracle dot com

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).