[llvm-bugs] [Bug 34265] New: DelayedTypos assertion with bad arguments to __builtin_astype()

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 21 12:32:34 PDT 2017


            Bug ID: 34265
           Summary: DelayedTypos assertion with bad arguments to
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangbugs at nondot.org
          Reporter: chrisc.101 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19020
  --> https://bugs.llvm.org/attachment.cgi?id=19020&action=edit
Stack trace

The following code causes an assertion `DelayedTypos.empty()` in clang/sema
with message `Uncorrected typos!`:

void A() {
  __builtin_astype(x, x);

Full stack trace attached. Changing the second argument as such:

void A() {
  __builtin_astype(x, int);

Causes an unreachable in ASTContext.cpp with message `Unknown builtin type!`.

Using argument -fno-spell-checking prevents both errors.

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/20170821/ef5f6447/attachment-0001.html>

More information about the llvm-bugs mailing list