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: unassignedclangb...@nondot.org
Reporter: la...@vasama.org
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs