Clang static analysis results for dmd

Trass3r un at known.com
Wed Jul 27 05:18:09 PDT 2011


Am 27.07.2011, 10:22 Uhr, schrieb Don <nospam at nospam.com>:
> Here's a clang bug:
> http://octarineparrot.com/assets/dmd/report-vtxpYt.html#EndPath
>
> 3436 if (!exp)
> 	
>       <9> Taking false branch
> 3437	fd->nrvo_can = 0;
> 3438	
> 3439	if (exp)
> 	
>       <10> Taking false branch
> 3440	{
>
>
> That is, (!exp) is false, and (exp) is also false.

Yeah, though that code should really use else instead of another check.


More information about the Digitalmars-d mailing list