MagentaTreehouse
MagentaTreehouse
Bisects to fd51c78 @mizvekov .
Reduced: ```c++ template class sample_graph { public: template struct marker_ { constexpr marker_(sample_graph&, ColorMapTy) {} }; }; sample_graph g; decltype(g)::marker_ m{g, 0}; ``` See https://compiler-explorer.com/z/6EW46Kc8h. Assertion: ```console clang++: /root/llvm-project/llvm/include/llvm/ADT/SmallBitVector.h:457: llvm::SmallBitVector::reference...
[clang] Assertion `isa<CXXRecordDecl>(D->getDeclContext()) && "not a member specialization"' failed.
Bisects to f505ceabdd2339f078cd6886d3f52cc622abd5c9 @mizvekov .
Crashes in `main`. Also reduced a bit: ```c++ template void FuncTemplate() { (void)T; } template auto g = [] { static int InternalVar = 43; FuncTemplate(); }; int main() {...
Used to compile successfully in Clang 20 and 21, but started crashing again since Clang 22. https://compiler-explorer.com/z/T5Mqsxr8r
Looks like you are expecting existing elements to be moved before constructing the new element on reallocation. I think the current implementation has to do with making code like `a.emplace_back(a[0])`...