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

            Bug ID: 39813
           Summary: incorrectly-ordered designated initializers crashes
                    thread-safety analysis
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@metafoo.co.uk

Testcase:

struct S {
  S();
  S(const S&);
  ~S();
};

struct EF { S s; };

struct PN { PN(const PN&); };
extern PN pn;

struct FLN {
  EF ef;
  int it;
  PN pn;
};

void f() {
  FLN new_elem = {
      .ef = EF(),
      .pn = pn,
      .it = 0,
  };
}


This causes -Wthread-safety-analysis to crash when analyzing f().

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to