Open AlexeyDmitriev opened 2 years ago
@AlexeyDmitriev See my comment in https://github.com/llvm/llvm-project/issues/55732.
@llvm/issue-subscribers-clang-frontend
@pmor13 here diagnostics can be fixed while clang will still crash
template<typename a,(struct{a*b{delete b;}
Also, the only needed flag is -std=c++17
, on 14 and lower clang works fine: https://godbolt.org/z/3WMW9oqax
@vient FYI: version with no anonymous struct does not lead to crash:
template<typename a,(struct X{a*b{delete b;}
6 errors generated.
The following code (not correct c++, reduced by creduce) crashes the compiler with the request to submit bug report instead of giving a compiler error.
Code:
command to reproduce
Output