https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123162
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> ---
Thank you for the patch.
The testcase fails in a different way with different flags; I haven't checked
if the patch helps:
$ x86_64-pc-linux-gnu-gcc -Os -mno-sse2 testcase.c
testcase.c: In function 'foo':
testcase.c:4:3: error: invalid conversion from type '__bf16' without option
'-msse2'
4 | (0 ? : f) && c;
| ^
testcase.c:4:3: internal compiler error: tree check: expected class 'type',
have 'exceptional' (error_mark) in build_int_cst, at tree.cc:1651
0x2c7684d internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
...