[llvm-bugs] [Bug 32034] New: Assert-on-valid: "temporary created multiple times"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 21 17:25:26 PST 2017


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: unassignedclangbugs at nondot.org
          Reporter: aprantl at apple.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170222/96038030/attachment.html>


More information about the llvm-bugs mailing list