[llvm-bugs] [Bug 42710] New: Segmentation Fault when compiling with debug symbols

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 22 05:13:13 PDT 2019


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

            Bug ID: 42710
           Summary: Segmentation Fault when compiling with debug symbols
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++17
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cvzakharchenko at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

Created attachment 22268
  --> https://bugs.llvm.org/attachment.cgi?id=22268&action=edit
Segfault minimal reproducible example

Here is the code and the error, produced by clang compiler both on the latest
trunk version and some previous versions (clang-9.0, clang-8.0):

https://godbolt.org/z/H523mO

I attached the same code here. It produces Segmentation Fault, when compiled on
Linux 4.19.59-1-MANJARO with a command:

clang++ -std=c++17 -g test_main.cpp

It doesn't produce any errors without -g flag.

clang version 8.0.0 (tags/RELEASE_800/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

-- 
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/20190722/e445b547/attachment.html>


More information about the llvm-bugs mailing list