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]

Re: c++/8279: REGRESSION: failure to find a matching function in


Paolo writes:

> I'm tempted to agree with Wolfgang...

While I still want to see the input from the comp.std.c++ folks, I've
reduced the priority of this PR to non-critical/medium, since it's
arguable that this not be considered a regression (even though the
program worked in 2.95.x) due to the honor-std issues, and because there
is a workaround.

Even if gcc's behavior is correct, the diagnostic is puzzling:

PREFIX/include/c++/3.2.1/bits/stream_iterator.h:141: no 
   match for `std::basic_ostream<char, std::char_traits<char> >& << const 
   std::pair<std::string, unsigned int>&' operator

when there is what appears to be an exact match.  Strategies to come up
with a better diagnostic (e.g. tell the user why the function s/he
intended to use isn't accepted) would be wlcome.


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