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
-frelaxed-template-template-args: "error: pack expansion used as argument for non-pack parameter of alias template" with constrained alias template #62529
#include<boost/hana/type.hpp>template<class> requires(true) using U = int;
auto t = boost::hana::template_<U>(boost::hana::type_c<char>);
Reduced:
template<class> requires(true) using U = int;
template<template<typename ...> class, class> structS {};
template<classT> S<U, T> f();
auto t = f<int>();
compiled with -frelaxed-template-template-args gives:
<source>:2:31: error: pack expansion used as argument for non-pack parameter of alias templatetemplate<template<typename ...> class, class> struct S {};
(we need -frelaxed-template-template-args for other reasons)
Workaround: use std::enable_if_t to constrain alias template instead.