{
  "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-inherited-tail-padding/patches/VARIANT.patch",
    "build_command": "PATH=/path/to/bootstrap/bin:$PATH ./scripts/build-gnat.sh SOURCE BUILD INSTALL",
    "directory": "bundles/cxx-ada-inherited-tail-padding",
    "expected_failure_before_patch": "The generated Ada derived type is larger than its C++ class and writes a derived field at the wrong offset.",
    "expected_success_after_patch": "Ada and C++ agree on polymorphic, non-polymorphic, and multiple-base tail-padding sizes, offsets, and field values at -O0 and -O2.",
    "files_modified": [
      "gcc/c-family/c-ada-spec.cc",
      "gcc/c-family/c-ada-spec.h",
      "gcc/cp/decl2.cc",
      "gcc/testsuite/g++.dg/ada-spec/inherited-tail-padding.C"
    ],
    "fixture_sha256": "268ecfbbea1c448203e52faeb141862008ec80f297ee4875a8032d0a15998484",
    "id": "cxx-ada-inherited-tail-padding",
    "known_good_versions": [],
    "licensing": "GCC-derived compiler hunks remain GPL-3.0-or-later. The new tests are proposed for the GCC testsuite under GCC project terms.",
    "patch_statistics": {
      "gcc-13-14": {
        "additions": 276,
        "deletions": 1,
        "files": 4
      },
      "gcc-15-16": {
        "additions": 275,
        "deletions": 1,
        "files": 4
      }
    },
    "problem": "The C++ Ada mapper loses reusable base-class tail padding, including non-polymorphic and multiple-base layouts, so an Ada view can have a larger size and different field offsets than C++.",
    "readme_path": "bundles/cxx-ada-inherited-tail-padding/README.md",
    "regression_tests": [
      "gcc/testsuite/g++.dg/ada-spec/inherited-tail-padding.C"
    ],
    "repository_fixture": "bundles/cxx-ada-inherited-tail-padding/tests/inherited-tail-padding.C",
    "repository_test_runner": "bundles/cxx-ada-inherited-tail-padding/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 release identities. Pinned FSF release application is required by Linux CI.",
    "staged_depends_on": [
      "cxx-ada-virtual-inheritance-layout"
    ],
    "staged_in_patchset": "1.2.0",
    "staged_reason": "The nested primary-base component this bundle selects is emitted by the staged virtual-base layout path, so a compiler carrying this patch without the staged ABI-layout bundles does not produce the corrected record. Held out of the published patchset with the rest of the layout family.",
    "standalone_patch": false,
    "status": "staged",
    "test_command": "./scripts/run-regressions.sh INSTALL 1.2.0 GCC_MAJOR patched",
    "tests": [
      "bundles/cxx-ada-inherited-tail-padding/tests/cpp_tail_padding.adb",
      "bundles/cxx-ada-inherited-tail-padding/tests/inherited-tail-padding.C",
      "bundles/cxx-ada-inherited-tail-padding/tests/inherited_tail_padding_consumer.adb",
      "bundles/cxx-ada-inherited-tail-padding/tests/inherited_tail_padding_unpatched_consumer.adb"
    ],
    "title": "C++ Ada inherited tail padding",
    "upstream_issue": "Pending GCC Bugzilla filing.",
    "upstream_submission_state": "Not yet filed or submitted upstream.",
    "variants": [
      {
        "id": "gcc-13-14",
        "patch": "bundles/cxx-ada-inherited-tail-padding/patches/gcc-13-14.patch",
        "sha256": "1987e8144695191a0fe034394e27bb3f29f7a3aa4a5fe3382108458b2c7683ff",
        "source_flavors": [
          "linux",
          "darwin_arm64"
        ],
        "versions": [
          "13.2.0",
          "14.2.0"
        ]
      },
      {
        "id": "gcc-15-16",
        "patch": "bundles/cxx-ada-inherited-tail-padding/patches/gcc-15-16.patch",
        "sha256": "b095db3638dfd6734bd4190191e8aad005e37d492ccf5329bda801203cf16307",
        "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
}
