// PR c++/99331 // { dg-do compile { target c++11 } } // { dg-options "-Wconversion" } // Don't issue -Wconversion warnings for value-dependent expressions. template struct X {}; template struct Y {}; template X foo(); template X foo2(); template Y foo3(); template Y<1024> foo4(); // { dg-error "narrowing conversion" } template Y<1u> foo5(); template X<__INT_MAX__ + 1U> foo6(); // { dg-error "narrowing conversion" } template struct S { using t = X; using u = X; };