[llvm-bugs] [Bug 36064] New: ICE in simple (faulty) C++11 code; regression between v3.2 and v3.3

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 23 10:21:17 PST 2018


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

            Bug ID: 36064
           Summary: ICE in simple (faulty) C++11 code; regression between
                    v3.2 and v3.3
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tonyelewis at hotmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19728
  --> https://bugs.llvm.org/attachment.cgi?id=19728&action=edit
Pre-processed (-save-temps) from Clang 5.0.0

Compiling this code:

    template<typename A,decltype(new A)>struct b;
    struct d {
       static auto c=;
       decltype(b<decltype(c),int>);
    };

...with:

    clang++ -std=c++11 a.cpp

...causes the compiler to crash.

Investigation with Godbolt suggests that this problem was introduced between
Clang 3.2 and 3.3 and is still present in trunk (7.0.0 323180).

-- 
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/20180123/db44daba/attachment.html>


More information about the llvm-bugs mailing list