[llvm-bugs] [Bug 37127] New: Returning brace constructed struct causes clang++ to segfault during compilation

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 13 11:44:24 PDT 2018


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

            Bug ID: 37127
           Summary: Returning brace constructed struct causes clang++ to
                    segfault during compilation
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          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 on struct generation.

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

-- 
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/20180413/aa6d1670/attachment.html>


More information about the llvm-bugs mailing list