[cfe-commits] r97495 - /cfe/trunk/test/SemaTemplate/instantiate-function-1.cpp
Chris Lattner
sabre at nondot.org
Mon Mar 1 12:56:44 PST 2010
Author: lattner
Date: Mon Mar 1 14:56:44 2010
New Revision: 97495
URL: http://llvm.org/viewvc/llvm-project?rev=97495&view=rev
Log:
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"
Modified:
cfe/trunk/test/SemaTemplate/instantiate-function-1.cpp
Modified: cfe/trunk/test/SemaTemplate/instantiate-function-1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/instantiate-function-1.cpp?rev=97495&r1=97494&r2=97495&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/instantiate-function-1.cpp (original)
+++ cfe/trunk/test/SemaTemplate/instantiate-function-1.cpp Mon Mar 1 14:56:44 2010
@@ -177,9 +177,11 @@
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);
More information about the cfe-commits
mailing list