{
  "bundle": {
    "affected_versions": [
      "13.2.0",
      "14.2.0",
      "15.3.0",
      "16.1.0",
      "16.2.0"
    ],
    "application_command": "patch --fuzz=0 -p1 -i bundles/cxx-ada-derived-virtual-slots/patches/VARIANT.patch",
    "build_command": "PATH=/path/to/bootstrap/bin:$PATH ./scripts/build-gnat.sh SOURCE BUILD INSTALL",
    "directory": "bundles/cxx-ada-derived-virtual-slots",
    "expected_failure_before_patch": "A class-wide Ada call to a virtual first introduced in a derived C++ class reads a later non-function vtable entry and terminates abnormally.",
    "expected_success_after_patch": "Root destructors reserve stable Ada slots, derived destructor imports remain nonprimitive, later virtual slots match C++, colliding user methods are suffixed, and class-wide dispatch agrees at -O0 and -O2.",
    "files_modified": [
      "gcc/c-family/c-ada-spec.cc",
      "gcc/testsuite/g++.dg/ada-spec/derived-virtual-slots.C"
    ],
    "fixture_sha256": "4bc11a40aba2e1daeb6ff3f5fcfd569d112e527dc22a534e50e313d0a00ce18e",
    "id": "cxx-ada-derived-virtual-slots",
    "known_good_versions": [],
    "licensing": "GCC-derived compiler hunks remain GPL-3.0-or-later. The new test is proposed for the GCC testsuite under GCC project terms.",
    "patch_statistics": {
      "gcc-13-14": {
        "additions": 74,
        "deletions": 9,
        "files": 2
      },
      "gcc-15-16": {
        "additions": 74,
        "deletions": 9,
        "files": 2
      }
    },
    "problem": "Class-specific Ada destructor names consume new dispatch slots in derived classes and displace virtual methods introduced after them from their C++ vtable indices.",
    "readme_path": "bundles/cxx-ada-derived-virtual-slots/README.md",
    "regression_tests": [
      "gcc/testsuite/g++.dg/ada-spec/derived-virtual-slots.C"
    ],
    "repository_fixture": "bundles/cxx-ada-derived-virtual-slots/tests/derived-virtual-slots.C",
    "repository_test_runner": "bundles/cxx-ada-derived-virtual-slots/run-test.sh",
    "roles": {
      "1.0.0": {
        "13": {
          "role": "absent",
          "source_version": "13.2.0",
          "variant": null
        },
        "14": {
          "role": "absent",
          "source_version": "14.2.0",
          "variant": null
        },
        "15": {
          "role": "absent",
          "source_version": "15.3.0",
          "variant": null
        },
        "16": {
          "role": "absent",
          "source_version": "16.1.0",
          "variant": null
        }
      },
      "1.0.1": {
        "13": {
          "role": "absent",
          "source_version": "13.2.0",
          "variant": null
        },
        "14": {
          "role": "absent",
          "source_version": "14.2.0",
          "variant": null
        },
        "15": {
          "role": "absent",
          "source_version": "15.3.0",
          "variant": null
        },
        "16": {
          "role": "absent",
          "source_version": "16.1.0",
          "variant": null
        }
      },
      "1.1.0": {
        "13": {
          "role": "absent",
          "source_version": "13.2.0",
          "variant": null
        },
        "14": {
          "role": "absent",
          "source_version": "14.2.0",
          "variant": null
        },
        "15": {
          "role": "absent",
          "source_version": "15.3.0",
          "variant": null
        },
        "16": {
          "role": "absent",
          "source_version": "16.2.0",
          "variant": null
        }
      },
      "1.2.0": {
        "13": {
          "role": "staged",
          "source_version": "13.2.0",
          "variant": null
        },
        "14": {
          "role": "staged",
          "source_version": "14.2.0",
          "variant": null
        },
        "15": {
          "role": "staged",
          "source_version": "15.3.0",
          "variant": null
        },
        "16": {
          "role": "staged",
          "source_version": "16.2.0",
          "variant": null
        }
      }
    },
    "schema": 1,
    "source_provenance": "Repository-authored GCC patch and executable regression; exact application verified locally against the pinned Darwin patchset inputs. Pinned FSF release application is required by Linux CI.",
    "staged_depends_on": [],
    "staged_in_patchset": "1.2.0",
    "staged_reason": "Stabilizing destructor identities changes generated vtable slot naming for every derived class, which only has an observable contract once the ABI-layout bundles are accepted. Held out of the published patchset for separate upstream review.",
    "standalone_patch": false,
    "status": "staged",
    "test_command": "./scripts/run-regressions.sh INSTALL 1.2.0 GCC_MAJOR patched",
    "tests": [
      "bundles/cxx-ada-derived-virtual-slots/tests/derived-virtual-slots.C",
      "bundles/cxx-ada-derived-virtual-slots/tests/derived_virtual_slots_consumer.adb"
    ],
    "title": "C++ Ada derived virtual slots",
    "upstream_issue": "Pending GCC Bugzilla filing.",
    "upstream_submission_state": "Not yet filed or submitted upstream.",
    "variants": [
      {
        "id": "gcc-13-14",
        "patch": "bundles/cxx-ada-derived-virtual-slots/patches/gcc-13-14.patch",
        "sha256": "8fbb185ad72db778d78a99411147eab667e62ee3f8a2e16a6b97383ea3ed5a30",
        "source_flavors": [
          "linux",
          "darwin_arm64"
        ],
        "versions": [
          "13.2.0",
          "14.2.0"
        ]
      },
      {
        "id": "gcc-15-16",
        "patch": "bundles/cxx-ada-derived-virtual-slots/patches/gcc-15-16.patch",
        "sha256": "13c5ceffb7db6ca7957b088487545c92b30c2235b4d550dec494c12f1ce600e6",
        "source_flavors": [
          "linux",
          "darwin_arm64"
        ],
        "versions": [
          "15.3.0",
          "16.1.0",
          "16.2.0"
        ]
      }
    ]
  },
  "canonical_url": "https://gnat-patches.flyology.org/",
  "generated_at": "2026-08-20T17:38:49Z",
  "latest_patchset": "1.2.0",
  "latest_published_patchset": "1.1.0",
  "publication_checked": true,
  "repository_url": "https://github.com/flyology-ada/gnat-patches",
  "schema_version": 1
}
