http://llvm.org/bugs/show_bug.cgi?id=16487

            Bug ID: 16487
           Summary: Warning for uninitialized structure elements
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

We should get simple warnings for structure elements, e.g. here:

#include <stdio.h>
#include <stdbool.h>

struct wrapper {
  bool p;
};

int main(int argc, char *argv[])
{
    struct wrapper w;

    if ( w.p )
        puts("p is true");
    else
        puts("p is not true");

    if ( ! w.p )
        puts("p is false");
    else
        puts("p is not false");

    return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to