You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template<template<classT> class> structA {};
template<classT> structQ {};
template<classT> using R = Q<T>;
intf(A<R>);
intg(A<Q> a) { returnf(a); }
GCC accepts (since 4.9.0), Clang rejects with:
<source>:5:24: error: no matching function for call to 'f'int g(A<Q> a) { return f(a); } ^<source>:4:5: note: candidate function not viable: no known conversion from 'A<template Q>' to 'A<template R>' for 1st argumentint f(A<R>); ^
-frelaxed-template-template-args doesn't seem to help in any recent major.