]> granicus.if.org Git - clang/commit
Improve error recovery in C++: when we hit 'implicit int' cases in C++,
authorChris Lattner <sabre@nondot.org>
Fri, 26 Jun 2009 04:45:06 +0000 (04:45 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Jun 2009 04:45:06 +0000 (04:45 +0000)
commitb78d833b12f7c4baab138f305f72efd49455a3f9
treef4ef18bdef1fd8f9d448bfa4f554fc37b48bd0d7
parentc8e27cc402043ec86c1698c09e4ee9e415b16207
Improve error recovery in C++: when we hit 'implicit int' cases in C++,
these are usually because the parser was thoroughly confused.  In addition
to typing the value being declared as an int and hoping for the best, we
mark the value as invalid so we don't get chains of errors when it is
used downstream.  In C, implicit int actually is valid, so typing the thing
as int is good and marking it invalid is bad. :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74266 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
lib/Sema/SemaType.cpp
test/SemaCXX/nested-name-spec.cpp