Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:jump

35       goto foo; // expected-error {{cannot jump}}
36 C c; // expected-note {{jump bypasses variable initialization}}
82 goto *ip; // expected-error {{cannot jump}}
83 C c1; // expected-note {{jump bypasses variable initialization}}
104 D d; // expected-note {{jump exits scope of variable with non-trivial destructor}}
106 goto *ip; // expected-error {{cannot jump}}
155 int x = 56; // expected-note {{jump bypasses variable initialization}}
156 case 1: // expected-error {{cannot jump}}
162 goto l2; // expected-error {{cannot jump}}
163 l1: int x = 5; // expected-note {{jump bypasses variable initialization}}
211 goto *&&a0; // expected-error {{cannot jump}}
212 int a = 3; // expected-note {{jump bypasses variable initialization}}
227 C c0 = 42; // expected-note {{jump exits scope of variable with non-trivial destructor}}
228 goto *ip; // expected-error {{cannot jump}}
241 const C &c1 = 42; // expected-note {{jump exits scope of lifetime-extended temporary with non-trivial destructor}}
243 goto *ip; // expected-error {{cannot jump}}
256 const int &c1 = C(1).i; // expected-note {{jump exits scope of lifetime-extended temporary with non-trivial destructor}}
257 goto *ip; // expected-error {{cannot jump}}
279 goto x; // expected-error {{cannot jump}}
280 } catch(...) { // expected-note {{jump bypasses initialization of catch block}}
283 void f2() try { // expected-note {{jump bypasses initialization of try block}}
286 goto x; // expected-error {{cannot jump}}
293 goto x; // expected-error {{cannot jump}}
294 const S &s = S(); // expected-note {{jump bypasses variable initialization}}
303 goto x; // expected-error {{cannot jump}}
304 S s = {}; // expected-note {{jump bypasses variable initialization}}
323 B b = { 0, A() }; // expected-note {{jump exits scope of lifetime-extended temporary with non-trivial destructor}}
324 goto *p; // expected-error {{cannot jump}}
344 std::initializer_list<A> il = { a }; // expected-note {{jump exits scope of lifetime-extended temporary with non-trivial destructor}}
345 goto *p; // expected-error {{cannot jump}}
371 { A() } // expected-note {{jump exits scope of lifetime-extended temporary with non-trivial destructor}}
373 goto *p; // expected-error {{cannot jump}}
380 goto x; // expected-error {{cannot jump}}
425 // Test that jump scope checking recovers when there are unspecified errors
431 goto a0; // expected-error {{cannot jump}}
432 int a = 0; // expected-note {{jump bypasses variable initialization}}
438 int x = 56; // expected-note {{jump bypasses variable initialization}}
439 case 1: // expected-error {{cannot jump}}
450 goto into_try_except_try; // expected-error {{cannot jump from this goto statement to its label}}
451 __try { // expected-note {{jump bypasses initialization of __try block}}
457 goto into_try_except_except; // expected-error {{cannot jump from this goto statement to its label}}
459 } __except(0) { // expected-note {{jump bypasses initialization of __except block}}
466 goto into_try_except_try; // expected-error {{cannot jump from this goto statement to its label}}
467 __try { // expected-note {{jump bypasses initialization of __try block}}
473 goto into_try_except_finally; // expected-error {{cannot jump from this goto statement to its label}}
475 } __finally { // expected-note {{jump bypasses initialization of __finally block}}
510 goto out_of_finally_finally; // expected-warning {{jump out of __finally block has undefined behavior}}
515 goto *&&out_of_finally_finally; // expected-warning {{jump out of __finally block has undefined behavior}}
525 goto from_try_to_except; // expected-error {{cannot jump from this goto statement to its label}}
526 } __except(0) { // expected-note {{jump bypasses initialization of __except block}}
531 __try { // expected-note {{jump bypasses initialization of __try block}}
535 goto from_except_to_try; // expected-error {{cannot jump from this goto statement to its label}}
541 goto from_try_to_finally; // expected-error {{cannot jump from this goto statement to its label}}
542 } __finally { // expected-note {{jump bypasses initialization of __finally block}}
547 __try { // expected-note {{jump bypasses initialization of __try block}}
551 goto from_finally_to_try; // expected-error {{cannot jump from this goto statement to its label}} expected-warning {{jump out of __finally block has undefined behavior}}
560 goto outer_except; // expected-error {{cannot jump from this goto statement to its label}}
562 } __except(0) { // expected-note {{jump bypasses initialization of __except bloc}}
570 goto outer_finally; // expected-error {{cannot jump from this goto statement to its label}}
572 } __finally { // expected-note {{jump bypasses initialization of __finally bloc}}
581 goto after_outer_except; // expected-warning {{jump out of __finally block has undefined behavior}}
604 __try { // expected-note {{jump exits __try block}}
607 goto *ip; // expected-error {{cannot jump from this indirect goto statement to one of its possible targets}}
612 } __except(0) { // expected-note {{jump exits __except block}}
614 goto *ip; // expected-error {{cannot jump from this indirect goto statement to one of its possible targets}}
617 __try { // expected-note {{jump exits __try block}}
618 goto *ip; // expected-error {{cannot jump from this indirect goto statement to one of its possible targets}}
623 } __finally { // expected-note {{jump exits __finally block}}
624 goto *ip; // expected-error {{cannot jump from this indirect goto statement to one of its possible targets}}