diff --git a/uppsrc/CppBase/Parser.cpp b/uppsrc/CppBase/Parser.cpp index 7e9c277c4..40e1b8ee2 100644 --- a/uppsrc/CppBase/Parser.cpp +++ b/uppsrc/CppBase/Parser.cpp @@ -843,6 +843,9 @@ void Parser::Declarator(Decl& d, const char *p) ParamList(d); p = lex.Pos(); Qualifier(); + if(filetype == FILE_C && lex != '{' && lex != ';') // K&R style function header + while(lex != '{' && lex != t_eof) + ++lex; } } EatInitializers();