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: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 9 May 2011 20:14:36 +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 #15 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-09 20:10:23 UTC ---
(In reply to comment #11)
> If I understand your proposal correctly, we'd get something more like:
>
> foo.C:blahblah: error: no matching function for call to foo
> foo.C:blahblah: note: candidate is foo(blahblah)
> foo.C:blahblah: error: [some explanation]
>
> which doesn't seem quite right.
Having it use the error tag rather than note is suboptimal, but I think getting
helpful error messages with relatively minimal compiler changes outweighs that
aesthetic concern. :)