https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120345

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Barnabás Pőcze from comment #4)
> A compilation error has been reported to the libcamera project with gcc 16:
> https://lists.libcamera.org/pipermail/libcamera-devel/2026-January/057037.
> html The first error shown happens in the following function:
> https://gitlab.freedesktop.org/camera/libcamera/-/blob/
> 4ceceb682af3b462cf4217e5d9f1df1244900bf3/src/libcamera/base/log.cpp#L508
> 
> It is suspected that this is the underlying issue based on the description
> here and the github comment linked above. Before gcc 16 this error was not
> encountered, so it is believed that the introduction of `max-devirt-targets`
> with a default value of 3 made this issue visible in libcamera.
> 
> Setting `-fno-devirtualize` or `--param=max-devirt-targets=1` avoids the
> warning.

That would be PR 122197 and unrelated to this bug.

Reply via email to