[llvm-bugs] [Bug 35682] New: clang frontend crash with parser at end of file

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 17 16:46:40 PST 2017


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

            Bug ID: 35682
           Summary: clang frontend crash with parser at end of file
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tompearson2002 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19564
  --> https://bugs.llvm.org/attachment.cgi?id=19564&action=edit
C++ file which causes crash

The clang frontend crashes at the end of file when compiling a small C++ file.

The crash can be reproduced by invoking:
  clang++ -o /dev/null -std=c++1z -stdlib=libc++ -Wall -Wpedantic -Werror -O0
-emit-llvm -c value.cpp
where value.cpp is the name of the file.

Although the file is not valid C++, clang should not crash.

This occurred on Antergos Linux with kernel version 4.14.5-1-ARCH, with clang
version 5.0.0.

-- 
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/20171218/55ff94ab/attachment.html>


More information about the llvm-bugs mailing list