commit 37c543332c819df9b16eceb732a727992af7a7d4
parent f5199492fb98c0b6c2034041e6865de4dabaac33
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 9 May 2015 17:53:17 +0200
Do not try to recover from declearations
After found a ';' we can not be sure that we will have
another declaration, so it is better to return.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cc1/decl.c b/cc1/decl.c
@@ -431,7 +431,8 @@ decl(void)
extern jmp_buf recover;
setsafe(END_DECL);
- setjmp(recover);
+ if (setjmp(recover))
+ return;
tp = specifier(&sclass);
if (accept(';'))
return;