MagentaTreehouse

Results comments of MagentaTreehouse

Looks like a duplicate of #92189.

Argument passed to `foo` is: ```console ... `-MaterializeTemporaryExpr 'const int[2]' lvalue `-InitListExpr 'const int[2]' |... ``` Maybe there should be an `ImplicitCastExpr` to `const int[]` on top of the `MaterializeTemporaryExpr`?

libstdc++ started using `__array_rank` since [this commit](https://github.com/gcc-mirror/gcc/commit/6f0dfa6f1acdf78d764d6f5d6f53c2f2a768c047) but clang seems to have some problems with this builtin. See https://gcc3.godbolt.org/z/WjWMozn4e. libc++ has a workaround: https://github.com/llvm/llvm-project/blob/69d3ba3db922fca8cfc47b5f115b6bea6a737aab/libcxx/include/__type_traits/rank.h#L22-L23

On Clang trunk, the reduced code below reproduces a crash that matches the one by the original code. The difference is that it does not crash Clang 18 like the...

Understood. Here is the repro that also crashes on 18: ```c++ template struct buf { constexpr buf(auto&&... initList) requires (sizeof...(initList)

Reduced: https://compiler-explorer.com/z/eG7eGjMrb ```c++ template struct numeric_union { template static constexpr auto prototype = 0; constexpr static auto sizes = sizeof(prototype); }; numeric_union a; ``` The difference from #75847 is that...

Reduced: ```c++ template T&& declval(); template auto invoke(F&& f, Args&&... args) -> decltype(static_cast(f)(static_cast(args)...)); template using invoke_result_t = decltype(invoke(declval(), declval()...)); template concept invocable = requires(F&& f, Args&&... args) { invoke(static_cast(f), static_cast(args)...);...

> From my reading of the C++17 feature (see "[Deduction for alias templates](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction#Deduction%20for%20alias%20templates:~:text=Deduction%20for%20alias%20templates)") the deduction guide is being properly used here. Deduction for alias templates is not a C++17 feature....

It looks like the code is invalid per [[dcl.type.class.deduct]](https://timsong-cpp.github.io/cppwp/dcl.type.class.deduct): > If a placeholder for a deduced class type appears as a [decl-specifier](https://timsong-cpp.github.io/cppwp/dcl.spec.general#nt:decl-specifier) in the [decl-specifier-seq](https://timsong-cpp.github.io/cppwp/dcl.spec.general#nt:decl-specifier-seq) of an initializing declaration ([[dcl.init]](https://timsong-cpp.github.io/cppwp/dcl.init))...

> [@MagentaTreehouse](https://github.com/MagentaTreehouse) is this derived from a real-world use case, or does it come from a fuzzer such that there's less risk of regressing it in 20? It is derived...