https://bugs.llvm.org/show_bug.cgi?id=45341
Bug ID: 45341
Summary: Crash in code generation or optimizer
Product: clang
Version: 7.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: jva...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
Created attachment 23284
--> https://bugs.llvm.org/attachment.cgi?id=23284&action=edit
Reproduction.zip
When compiling with -fsyntax-only, I don't get the problem.
When compiling with LLVM 9.0.0, I also don't get a crash.
However, I'm unable to upgrade this project as the compilers have been fixed on
release. Some understanding of why this is happening would be useful to work
around these crashes. (Note that some manipulations can fix the crash on this
production without doing this on the original)
// C:\LLVM_7_0_0\bin\clang-cl.exe /c /EHsc -w /std:c++17 t.cpp
// See reproduction.zip for preprocessed code + .sh
#include <string>
#include <variant>
#include <vector>
struct A {
std::basic_string<wchar_t> m;
};
struct B {
B(A a);
std::variant<A> m;
};
struct C : B {
using B::B;
};
void f() {
std::vector<C> c{};
auto a = A{};
auto b = C{std::move(a)};
c.push_back(C{A{}});
}
--
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