https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80660 --- Comment #2 from drepper.fsp+rhbz at gmail dot com <drepper.fsp+rhbz at gmail dot com> --- final shouldn't be needed in this case. It's an object that is used, the type is known.