[Bug c++/48934] no rejection reason given for SFINAE

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 9 20:14:00 GMT 2011


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.  :)



More information about the Gcc-bugs mailing list