[llvm-bugs] [Bug 25968] New: ICE with anonymous struct returned from static class function

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 30 03:51:24 PST 2015


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

            Bug ID: 25968
           Summary: ICE with anonymous struct returned from static class
                    function
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jeanmichael.celerier at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15534
  --> https://llvm.org/bugs/attachment.cgi?id=15534&action=edit
Source file and sh file produced by clang

Here is the code on which clang ICEs : 

    class bug
    {
        static auto F()
        {
            struct anon {
            };

            return anon();
        }
    };


Result :

  % clang++ -std=c++14 test.cpp
clang-3.7: error: unable to execute command: Segmentation fault (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.7: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.7: note: diagnostic msg: /tmp/test-8395dd.cpp
clang-3.7: note: diagnostic msg: /tmp/test-8395dd.sh
clang-3.7: note: diagnostic msg: 

********************
[2]    20860 exit 254   clang++ -std=c++14 test.cpp

-- 
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/20151230/44772dc6/attachment.html>


More information about the llvm-bugs mailing list