[llvm-bugs] [Bug 45344] New: Segmentation fault on compilation with lambda

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 29 07:59:31 PDT 2020


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

            Bug ID: 45344
           Summary: Segmentation fault on compilation with lambda
           Product: clang
           Version: 9.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pelsen at xfbs.net
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 23286
  --> https://bugs.llvm.org/attachment.cgi?id=23286&action=edit
Minimal code file that triggers the bug

Segmentation fault on compilation of code. 

Platform: Mac OS X
Versions: Apple Clang 11, LLVM Clang 9.0.1 (from homebrew).

I managed to reduce the code to a couple lines that trigger the crash, see the
attached store.cpp. 

The compilation flags I've used were:

/usr/local/Cellar/llvm/9.0.1/bin/clang++ -std=c++17 store.cpp
/usr/bin/clang -std=c++17 store.cpp

See attached files.

-- 
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/20200329/c2a2235b/attachment-0001.html>


More information about the llvm-bugs mailing list