Skip to content

Impeller compilation fails with Clang 21.1.0+ #178681

@planetmarshall

Description

@planetmarshall

Steps to reproduce

  1. Compile the engine sources (specifically Impeller) with Clang 21

Expected results

The engine successfully compiles

Actual results

Compilation fails with
../../flutter/impeller/renderer/vertex_descriptor.h:31:11: error: virtual method '~VertexDescriptor' is inside a 'final' class and can never be overridden [-Werror,-Wunnecessary-virtual-specifier

unnecessary-virtual-specifier was added in Clang 21.1.0

Code sample

N/A

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

N/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine teamwaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions