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++/48934] no rejection reason given for SFINAE


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

--- Comment #14 from froydnj at codesourcery dot com <froydnj at codesourcery dot com> 2011-05-09 19:20:49 UTC ---
On Mon, May 09, 2011 at 07:16:49PM +0000, redi at gcc dot gnu.org wrote:
> > foo.C:blahblah: error: no matching function for call to foo
> > foo.C:blahblah: note: candidate is foo(blahblah)
> > foo.c:blahblah: note:   substitution failed for parameter `F'
> > 
> > At least, that's what I understood Jonathan asking for--perhaps he
> > wanted something more detailed about why substitution failed, which is a
> > debate for another time, I think.
> 
> I would love to get more information, but I'd be very happy with the diagnostic
> above (that's already better than I'd get from any compiler I've tried)
> 
> This PR is really just to get *anything* printed, so just a basic "substition
> failed" with no mention of which template parameter failed would be enough to
> resolve this IMHO.

OK, well that's easy enough to provide, then. :)


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