https://bugs.llvm.org/show_bug.cgi?id=50067

            Bug ID: 50067
           Summary: Missing -Wuninitialized for copying structures in C++
                    mode
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

struct S {
  int i;
};

void test() {
  struct S s;
  struct S t;
  s = t;
}

void test2() {
  struct S s;
  struct S t;
  s = s;
}

class A {
  int i;
};

void test3() {
  A s;
  A t;
  s = t;
}

void test4() {
  class B {
    int i;
  };
  B s;
  B t;
  s = t;
}
https://godbolt.org/z/ob19oYzoj

Maybe due RecordDecl vs CXXRecordDecl somewhere? Any hints where to look?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to