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++/53415] problematic error message for ambiguity


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.


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