[llvm-bugs] [Bug 46748] New: Unexpected signed integer or fixed point type: UNREACHABLE executed at ASTContext.cpp:9789!

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 16 05:43:00 PDT 2020


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

            Bug ID: 46748
           Summary: Unexpected signed integer or fixed point type:
                    UNREACHABLE executed at ASTContext.cpp:9789!
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: t.priesner at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 23730
  --> https://bugs.llvm.org/attachment.cgi?id=23730&action=edit
Preprocessed source file

Compiling the following (reduced) file with clang 11.0 (compiled from trunk)
causes clang to crash with the following message:

$ cat bug.cpp
void a() {
  wchar_t *b;
  b = (char*)v
}

Error (full error output attached):
Unexpected signed integer or fixed point type
UNREACHABLE executed at
/home/user/llvm-project/clang/lib/AST/ASTContext.cpp:9789!

Note: Clang version 10.0.0 just reports a compile error and doesn't crash.

Additional Information:

$ clang++ --version
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
e73d0b5719966ddbeff7a3da70a3cb782c3733ed)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/user/llvm-project/build/bin

$ cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20200710"

-- 
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/20200716/6c1d7392/attachment-0001.html>


More information about the llvm-bugs mailing list