1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 namespace PR6382 { foo()4 int foo() 5 { 6 goto error; 7 { 8 struct BitPacker { 9 BitPacker() {} 10 }; 11 BitPacker packer; 12 } 13 14 error: 15 return -1; 16 } 17 } 18 19 namespace PR6383 { test(bool gross)20 void test (bool gross) 21 { 22 struct compare_and_set 23 { 24 void operator() (const bool inner, const bool gross = false) 25 { 26 // the code 27 } 28 } compare_and_set2; 29 30 compare_and_set2 (false, gross); 31 } 32 } 33 34 namespace Templates { 35 template<int Value> f()36 void f() { 37 struct Inner { 38 static int getValue() { return Value; } 39 }; 40 } 41 } 42