[llvm-bugs] [Bug 44268] Assertion `is<T>() && "Invalid accessor called"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 13 18:42:38 PST 2019


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Reduced to:

int b(void *c) __attribute__((enable_if(__builtin_object_size(c, 0), "")));
int a = b(new int);

or:

constexpr int f() {
  void *c = new int;
  return __builtin_object_size(c, 0);             
}

Fixed in llvmorg-10-init-11960-gc5b890e9224

-- 
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/20191214/78dc4726/attachment.html>


More information about the llvm-bugs mailing list