http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55724
Bug #: 55724 Summary: Default type of a template value is not working Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: vince....@gmail.com The following code does not compile with g++ 4.7 : -------------------------------------------- template<int N> struct S {}; template<typename T = int, T N> void f(S<N>) {} int main() { S<1> s; f(s); } -------------------------------------------- (source : http://stackoverflow.com/q/13915835/882932)