This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48934] no rejection reason given for SFINAE
- From: "froydnj at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 9 May 2011 19:27:24 +0000
- Subject: [Bug c++/48934] no rejection reason given for SFINAE
- Auto-submitted: auto-generated
- References: <bug-48934-4@http.gcc.gnu.org/bugzilla/>
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. :)