1 // { dg-do compile { target { c++11 && int32 } } } 2 // { dg-options -w } 3 4 template<typename T, T...> struct integer_sequence { }; 5 template<typename T, T num> 6 using make_integer_sequence = integer_sequence<T, __integer_pack(num)...>; // { dg-error "argument" } 7 8 #if __SIZEOF_LONG_LONG__ > __SIZEOF_INT__ 9 make_integer_sequence<int, 1LL << (__SIZEOF_INT__ * __CHAR_BIT__)> w; 10 #endif 11 make_integer_sequence<int, __INT_MAX__> x; // { dg-message "required" } 12 make_integer_sequence<int, -2147483650> y; // { dg-message "required" } 13