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

Re: [RFC,c++] fix PR 45329, provide information on overload resolution


On 12/02/2010 05:09 PM, Nathan Froyd wrote:
When you say "indented", do you mean like this:

pr45329.C: In function 'int foo2(int)':
pr45329.C:26:7: error: no matching function for call to 'foo(int&)'
pr45329.C:26:7: note: candidates are:
pr45329.C:7:5: note: int foo(int, int)
pr45329.C:7:5: note:   candidate expects 2 arguments, 1 provided
pr45329.C:19:5: note: int foo(const S&)
pr45329.C:19:5: note:   no known conversion for argument 1 from 'int' to 'const S&'

Yep.


Jason


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