// Verify when substituting __underlying_type its cv-quals are carried over. // { dg-do compile { target c++11 } } template using const_underlying_type_t = const __underlying_type(T); enum A { a }; using type = const_underlying_type_t; using type = const __underlying_type(A);