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

Enea Zaffanella zaffanella at cs.unipr.it
Thu Jan 10 03:21:48 PST 2013


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

Is this a known issue?

Enea.



More information about the cfe-dev mailing list