[llvm-bugs] [Bug 49344] New: ICE on consteval constructor when targeting Windows
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 24 14:42:37 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49344
Bug ID: 49344
Summary: ICE on consteval constructor when targeting Windows
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: lauri at vasama.org
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Created attachment 24569
--> https://bugs.llvm.org/attachment.cgi?id=24569&action=edit
Source
https://godbolt.org/z/s14Ec5
struct C
{
static constexpr int S(const char* cstr)
{
return 0;
}
};
struct B
{
const char* a;
const char* b;
constexpr B(const char* string, size_t size)
: a(string), b(string + size)
{
}
};
struct S : B
{
consteval S(const char* cstr)
: B(cstr, C::S(cstr))
{
}
};
S f()
{
return "";
}
--
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/20210224/c838aec4/attachment.html>
More information about the llvm-bugs
mailing list