This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53415] problematic error message for ambiguity
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 08 Jun 2012 23:47:03 +0000
- Subject: [Bug c++/53415] problematic error message for ambiguity
- Auto-submitted: auto-generated
- References: <bug-53415-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53415
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-06-08
CC| |manu at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-06-08 23:47:03 UTC ---
I think there are quite a few bugs here. Starting with the
template-parameter-1-1 output.
Clang is not very helpful in this case:
/tmp/webcompile/_14729_0.cc:23:5: error: no matching function for call to 'foo'
foo(1);
^~~
/tmp/webcompile/_14729_0.cc:19:20: note: candidate template ignored:
substitution failure [with X = int]
S<0 + T<X>::value> foo(X);
^
1 error generated.