llvm-project
llvm-project copied to clipboard
llvm crash - segfault during template argument deduction
llvm crashes for the following reduced code:
class a {
using size_type = long;
template < typename Self > void at( this Self&&, size_type );
};
template < typename > class b : a{};
template < typename T = int > class d : b< T > {
using some_type = T;
some_type f = at( f );
};
d i e
if some_type does not depend on T, llvm reports use of underclared identifier 'at', no crash
@llvm/issue-subscribers-clang-frontend
Author: None (eddieavd)
llvm crashes for the following reduced code:
class a {
using size_type = long;
template < typename Self > void at( this Self&&, size_type );
};
template < typename > class b : a{};
template < typename T = int > class d : b< T > {
using some_type = T;
some_type f = at( f );
};
d i e
if some_type does not depend on T, llvm reports use of underclared identifier 'at', no crash
Looks similar to: https://github.com/llvm/llvm-project/issues/69838
CC @cor3ntin
@shafik Looks like it's no longer crashing.