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
[[gnu::constructor(P)]] voidf() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
17
+
template <longlong P> [[gnu::constructor(P)]] voidf() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
18
18
template void f<1LL<<32>(); // expected-note {{in instantiation of function template specialization 'f<4294967296LL>' requested here}}
template <typename T> [[gnu::constructor(static_cast<T>(1LL<<32))]] voidf() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
22
+
templatevoid f<longlong>(); // expected-note {{in instantiation of function template specialization 'f<long long>' requested here}}
[[gnu::constructor(static_cast<T>(1LL<<32))]] voidh() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
32
-
template void h<longlong>(); // expected-note {{in instantiation of function template specialization 'h<long long>' requested here}}
[[gnu::destructor(P)]] voidfd() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
52
+
template <longlong P> [[gnu::destructor(P)]] voidfd() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
47
53
template void fd<1LL<<32>(); // expected-note {{in instantiation of function template specialization 'fd<4294967296LL>' requested here}}
template <typename T> [[gnu::destructor(static_cast<T>(1LL<<32))]] voidfd() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
57
+
templatevoid fd<longlong>(); // expected-note {{in instantiation of function template specialization 'fd<long long>' requested here}}
[[gnu::destructor(static_cast<T>(1LL<<32))]] voidhd() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
61
-
template void hd<longlong>(); // expected-note {{in instantiation of function template specialization 'hd<long long>' requested here}}
0 commit comments