Mital Ashok

Results comments of Mital Ashok

Looks like it's incorrectly being marked as dependent and waiting for a template instantiation to evaluate : ```c++ void f(); void f(int); template concept C = false; static_assert(!requires {{ &f...

Accidentally posted #55766 twice as GitHub said it failed to post, closing this exact copy

> I believe that no way would remain to obtain Clang's “ISO C forbids taking the address of an expression of type 'void'” warning after these changes, and I would...

https://reviews.llvm.org/D154716 should fix this

This is broken by 0fd9c37d8cf20d1ee42263872ab2135265c3ac3d It compiles with `-fno-builtin-std-forward_like`. This is not a regression because your code has undefined behaviour (you modify the `std` namespace). To do these "polyfills" safely,...

libstdc++ seems to explicitly disable `std::bind` if the first argument is an integral or enumeration type: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/include/std/functional;h=4a4b8b2b2e618be4c41e1fa1f55d154d2766bc19;hb=refs/heads/trunk#l852 Which libc++ does not have: https://github.com/llvm/llvm-project/blob/main/libcxx/include/__functional/bind.h#L366 This can be supported in libc++ with:...

Smaller example: ```c++ template struct X { template static constexpr bool eq = (__is_same(Ts, Us) && ...); template requires (sizeof...(Us) == sizeof...(Ts)) explicit(eq) X(Us...); X(...); }; int main() { X{0};...

Here's a reproducer without libstdc++: https://godbolt.org/z/K7dxd9sW5 Two files: ```c++ // system_header.h #pragma once #pragma GCC system_header template [[__deprecated__]] T* get_temporary_buffer(int) { return nullptr; } template void stable_sort(T, T) { get_temporary_buffer(4);...

This currently crashes on HEAD : ``` clang++: /root/llvm-project/clang/include/clang/AST/Decl.h:276: llvm::StringRef clang::NamedDecl::getName() const: Assertion `Name.isIdentifier() && "Name is not a simple identifier"' failed. ``` 69066ab31959968ebcbca71f3872bdedef8fb8cd is the first commit where this...