Open Fedr opened 3 weeks ago
@llvm/issue-subscribers-clang-frontend
Author: Fedor Chelnokov (Fedr)
Assertions build are almost always more useful: https://gcc.godbolt.org/z/Eb8Ec586E
Assertion:
clang++: /root/llvm-project/clang/lib/AST/ASTContext.cpp:2304:
clang::TypeInfo clang::ASTContext::getTypeInfoImpl(const clang::Type*) const:
Assertion `!A->getDeducedType().isNull() && "cannot request the size of an undeduced or dependent auto type"' failed.
Looks like edg rejects but I think this should be accepted.
@cor3ntin looks like potentially a codegen bug but not sure
Related to issue #71590?
This program
is accepted in GCC and MSVC, but Clang crashes:
Online demo: https://gcc.godbolt.org/z/vdb6hMThc