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

Barnabás Pőcze <pobrn at protonmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pobrn at protonmail dot com

--- Comment #4 from Barnabás Pőcze <pobrn at protonmail dot com> ---
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.

Reply via email to