From: Chris Lattner Date: Mon, 1 Mar 2010 20:56:44 +0000 (+0000) Subject: avoid issues with the new scope protector. Previously we'd error X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=632c9d26925f9aa8179607956c83ee348930b6d7;p=clang avoid issues with the new scope protector. Previously we'd error with "address taken of label in protected scope, jump to it would have unknown effect on scope" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97495 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 543b3cc197..144c630fce 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp @@ -177,9 +177,11 @@ template struct IndirectGoto0 { goto *x; // expected-error{{incompatible}} prior: - T prior_label = &&prior; + T prior_label; + prior_label = &&prior; - T later_label = &&later; + T later_label; + later_label = &&later; later: (void)(1+1);