Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:Volatile

1145 namespace Volatile {
1147 volatile constexpr int n1 = 0; // expected-note {{here}}
1148 volatile const int n2 = 0; // expected-note {{here}}
1151 constexpr int m1 = n1; // expected-error {{constant expression}} expected-note {{read of volatile-qualified type 'const volatile int'}}
1152 constexpr int m2 = n2; // expected-error {{constant expression}} expected-note {{read of volatile-qualified type 'const volatile int'}}
1153 constexpr int m1b = const_cast<const int&>(n1); // expected-error {{constant expression}} expected-note {{read of volatile object 'n1'}}
1154 constexpr int m2b = const_cast<const int&>(n2); // expected-error {{constant expression}} expected-note {{read of volatile object 'n2'}}
1159 constexpr int f(volatile int &&r) {
1160 return r; // expected-note {{read of volatile-qualified type 'volatile int'}}
1162 constexpr int g(volatile int &&r) {
1163 return const_cast<int&>(r); // expected-note {{read of volatile temporary is not allowed in a constant expression}}