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

            Bug ID: 34265
           Summary: DelayedTypos assertion with bad arguments to
                    __builtin_astype()
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangb...@nondot.org
          Reporter: chrisc....@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to