File ragel-6.9_gcc6.patch of Package ragel

Index: ragel-6.9/ragel/rbxgoto.cpp
===================================================================
--- ragel-6.9.orig/ragel/rbxgoto.cpp
+++ ragel-6.9/ragel/rbxgoto.cpp
@@ -37,13 +37,13 @@ inline string label(string a, int i)
 	return a + itoa(i);
 }
 
-ostream &RbxGotoCodeGen::rbxLabel(ostream &out, string label)
+std::ostream &RbxGotoCodeGen::rbxLabel(ostream &out, string label)
 {
 	out << "Rubinius.asm { @labels[:_" << FSM_NAME() << "_" << label << "].set! }\n";
 	return out;
 }
 
-ostream &RbxGotoCodeGen::rbxGoto(ostream &out, string label)
+std::ostream &RbxGotoCodeGen::rbxGoto(ostream &out, string label)
 {
 	out << "Rubinius.asm { goto @labels[:_" << FSM_NAME() << "_" << label << "] }\n";
 	return out;
@@ -655,10 +655,11 @@ void RbxGotoCodeGen::BREAK( ostream &ret
 {
 	outLabelUsed = true;
 
-	out <<
+	ret <<
 		"	begin\n"
 		"		" << P() << " += 1\n"
-		"		" << rbxGoto(ret, "_out") << "\n" 
+		"		";
+	rbxGoto(ret, "_out") << "\n" 
 		"	end\n";
 }
 
openSUSE Build Service is sponsored by