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

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
 - 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.
llvm-bugs mailing list

Reply via email to