Created attachment 212975 [details] Crash report While updating net-im/telegram-desktop from bug #245227 I found this clang crash in 13-current. Machine is: FreeBSD vm-current 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r359068: Wed Mar 18 23:07:43 CET 2020 root@vm-current:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Runnning on VMWare. Clang version is: FreeBSD clang version 8.0.1 (branches/release_80 364487) (based on LLVM 8.0.1) The bug is always reproducible with my setup. Attached debugging files and report.
Created attachment 212976 [details] shell to reproduce the problem
It seems the .cpp is too large for Bugzilla, so here it is: https://app.box.com/s/ytv0q48tp6e3fthvt9dc5e7sn293bdjj Should you have any problems accessing it, let me know.
Freebsd current has clang 10.0.0, not 8.0.1. Please update Clang. With 10, I get: fatal error: too many errors emitted, stopping now [-ferror-limit=] 8 warnings and 20 errors generated. (Not a Clang bug.)