// Verify top-level cv-qualifiers are dropped when determining the substituted // type of a non-type template parameter, as per [temp.param]/6. // { dg-do compile { target c++11 } } template decltype(V)& f(); using type = decltype(f()); using type = int&;