https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94039
Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.j.odwyer at gmail dot com --- Comment #3 from Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> --- You can also hit this with a lambda, which of course is isomorphic to Andre's test case: void (*a)() = true ? []{} : nullptr; Bug #88458 ("GCC rejects (true ? 0 : nullptr)") might be tangentially related.