[llvm-bugs] [Bug 37247] New: Clang++ segfaults during template specialization

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 25 19:00:29 PDT 2018


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

            Bug ID: 37247
           Summary: Clang++ segfaults during template specialization
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kvedder at umass.edu
                CC: llvm-bugs at lists.llvm.org

Overview:
Compiling valid C++11 code causes clang++ to segfault during struct generaion.

Repro Steps:
Download the attached .sh and .cpp files onto an x86_64 Ubuntu 16.04 install,
with the standard apt compiler version (3.8.0-2ubuntu4
(tags/RELEASE_380/final))
Run the attached .sh script with the attached .cpp file generated by clang++
Actual Results:
clang++ segfaults during codegen.

Expected Results:
Either a compiler error or a working binary. g++ (Ubuntu
5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 is able to produce a working binary on
the same source clang++ segfaults on.

Clang Version Info:
clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)

Target: x86_64-pc-linux-gnu

Thread model: posix

InstalledDir: /usr/bin

Hardware Info:
OS: Ubuntu 16.04 xenial

Kernel: x86_64 Linux 4.13.0-37-generic

CPU: Intel Core i7-7820HQ CPU @ 3.9GHz

Link to files (cannot attach due to file size restrictions):
https://github.com/kylevedder/bugreports/tree/master/clang/templates

-- 
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/20180426/707d4a7a/attachment.html>


More information about the llvm-bugs mailing list