commit e172a54f741c15f19a7a9df39c75a301ab784a80
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Mon Oct 5 16:43:08 2015 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Mon Oct 5 16:43:08 2015 +0200
Fix elif()
Elif() calls to cppif() to test the condition, but cppif()
increments the cpp context, which must not be incremented
because the else part of elif should already decrement it.
diff --git a/cc1/cpp.c b/cc1/cpp.c
index 4ed4ffb..733cab2 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -635,6 +635,7 @@ static void
elif(void)
{
elseclause();
+ --cppctx;
cppif();
}