]> granicus.if.org Git - clang/commit
Fix PR1999, by emitting a hard error only if an argument declarator is completely
authorChris Lattner <sabre@nondot.org>
Sun, 10 Feb 2008 23:08:00 +0000 (23:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Feb 2008 23:08:00 +0000 (23:08 +0000)
commit99d724f6a31b5521ded95adf10ef7f3c62a0b18e
tree89fbe3eb38f9fd83dbc7eee9be99e887b6190deb
parenta541d53589f4fe681a136ce6b470d598b6d51ccd
Fix PR1999, by emitting a hard error only if an argument declarator is completely
missing.  Otherwise, it is an implicit int case, which is valid in c90 and invalid
elsewhere, but accepted as an extension.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46938 91177308-0d34-0410-b5e6-96231b3b80d8
Parse/ParseDecl.cpp
include/clang/Basic/DiagnosticKinds.def
test/Parser/declarators.c
test/Sema/c89.c
test/Sema/function.c