Skip to content

gcc16 non-constant condition for static assertion #34

Description

@finjulhich

opencode found this explanation for the issue I described here https://codesynthesis.com/pipermail/odb-users/2026-May/005186.html

The virtual member pragma with get(...)/set(...) triggers GCC 16's new _Hashtable_enable_default_ctor check when the accessor functions are only declared (not defined inline). ODB's type-discovery compilation phase can't resolve is_default_constructible<equal_to<selector>> in its injected code context without inline definitions visible.

Bear with me please and let me know what more information I should add here ( while trying to a single file self contained reproducible error, the error never happened)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions