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

            Bug ID: 32034
           Summary: Assert-on-valid: "temporary created multiple times"
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

This is a recent regression possibly introduced by r273600 or r273602.

Assertion failed: (Result.isUninit() && "temporary created multiple times"),
function createTemporary, file ../tools/clang/lib/AST/ExprConstant.cpp, line
1096.

Testcase:

struct B {};
struct C {
  _Atomic(B) c;
       // ^ this temporary is created multiple times.
};
class {
  unsigned n = 0;
  struct {
    C x[1];
    C y[1];
  } g;
} a;

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

Reply via email to