[cfe-dev] Non-deterministic diagnostics for -Wuninitialized.

Csaba Raduly rcsaba at gmail.com
Thu Jan 10 04:09:19 PST 2013


Hi Enea,

On Thu, Jan 10, 2013 at 12:21 PM, Enea Zaffanella  wrote:
> Hello.
>
> We are obtaining non-deterministic diagnostic ordering when running clang
> with -Wuninitialized on the following testcase
>
> $ cat bug.c
> void foo(int a) {
>   int b, c;
>   a = b;
>   a = c;
> }
>
> $ clang -Wuninitialized -fsyntax-only bug.c 2> diag; md5sum diag
> 77a113d00be8eae91ea079159fcbeb22  diag
> $ clang -Wuninitialized -fsyntax-only bug.c 2> diag; md5sum diag
> aebb2b8d1cf3f47e82c8c43634d49bc8  diag

Which version of clang are you using? I got the same md5sum (different
from both of yours) ten times in a row with

$ clang -v
clang version 3.3 (trunk 171717)
Target: x86_64-unknown-linux-gnu
Thread model: posix


Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list