Hi Eli,

2012/8/1 Eli Friedman <[email protected]>:
> On Tue, Jul 24, 2012 at 7:06 AM, Ed Schouten <[email protected]> wrote:
>> I've updated the patch. As usual, it can be downloaded from:
>>
>> http://80386.nl/pub/wmissing-variable-declarations.txt
>
> @@ -6839,8 +6839,10 @@
>        }
>
>        // Record the tentative definition; we're done.
> -      if (!Var->isInvalidDecl())
> +      if (!Var->isInvalidDecl()) {
>          TentativeDefinitions.push_back(Var);
> +        CheckCompleteVariableDeclaration(Var);
> +      }
>        return;
>      }
>
> Calling CheckCompleteVariableDeclaration here doesn't make sense; the
> variable isn't complete at this point.  If we're going to call it, it
> should be from Sema::ActOnEndOfTranslationUnit.
>
> Otherwise, looks fine.

Great! Care to take another look?

http://80386.nl/pub/wmissing-variable-declarations.txt

(Be sure to refresh)

-- 
Ed Schouten <[email protected]>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to