Open iamanonymouscs opened 2 weeks ago
@llvm/issue-subscribers-clang-frontend
Author: Anonymous (iamanonymouscs)
This looks like a clang trunk regression: https://godbolt.org/z/95Y6s569x
@sdkrystian git bisect points to 2bb3d3a3f32ffaef3d9b6a27db7f1941f0cb1136
@shafik Reduced to:
template<bool B>
struct A { };
A<false> a;
template<typename T>
struct A { };
A<void> a; // crash here
The crash seems to happen when emitting the template parameter/template argument "diff" in the redefinition of a
. I can fix it by end of week.
Description
I encountered a crash in Clang-20 when compiling the following code snippet:
The compilation command used was:
Following the error messages, the compiler crashed with an assertion failure:
Error Message
The issue can also be reproduced on Compiler Explorer:https://godbolt.org/z/e77c91afb
Please let me know if you need any more details.