[llvm-bugs] [Bug 47953] New: ICE when parsing nested consteval constructor calls within array aggregate

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 23 06:33:12 PDT 2020


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

            Bug ID: 47953
           Summary: ICE when parsing nested consteval constructor calls
                    within array aggregate
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: werwolv98 at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

The issue is present both on Clang trunk and Clang 11.0, 10.1 however does
work.

Code to recreate the bug:

struct Base {
    consteval Base(int i) { }
};

struct Redirection {
    consteval Redirection(Base test) { }
};

auto arr = {
    Redirection { 1 },
};

Compiler explorer: https://godbolt.org/z/59ExaE

-- 
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/20201023/0bcdb136/attachment.html>


More information about the llvm-bugs mailing list