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.