{
  "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-empty-class-storage/patches/VARIANT.patch",
    "build_command": "PATH=/path/to/bootstrap/bin:$PATH ./scripts/build-gnat.sh SOURCE BUILD INSTALL",
    "directory": "bundles/cxx-ada-empty-class-storage",
    "expected_failure_before_patch": "Complete empty objects and ordinary empty members have insufficient Ada storage even though arrays, empty-base optimization, and no_unique_address overlap happen to match.",
    "expected_success_after_patch": "Ada and C++ agree on empty complete objects, ordinary members and arrays, empty-base optimization, and single or repeated no_unique_address layout at -O0 and -O2; only an actually overlapping no_unique_address field is omitted from the Ada view.",
    "files_modified": [
      "gcc/c-family/c-ada-spec.cc",
      "gcc/testsuite/g++.dg/ada-spec/empty-class-storage.C"
    ],
    "fixture_sha256": "dc0023efa0b203d59256510eba3150d603de959710f2c34ed8c065d85f75abf5",
    "id": "cxx-ada-empty-class-storage",
    "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": 255,
        "deletions": 4,
        "files": 2
      },
      "gcc-15-16": {
        "additions": 254,
        "deletions": 4,
        "files": 2
      }
    },
    "problem": "The C++ Ada mapper gives complete empty-class objects zero storage and maps overlapping no_unique_address members as ordinary Ada storage.",
    "readme_path": "bundles/cxx-ada-empty-class-storage/README.md",
    "regression_tests": [
      "gcc/testsuite/g++.dg/ada-spec/empty-class-storage.C"
    ],
    "repository_fixture": "bundles/cxx-ada-empty-class-storage/tests/empty-class-storage.C",
    "repository_test_runner": "bundles/cxx-ada-empty-class-storage/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-inherited-tail-padding"
    ],
    "staged_in_patchset": "1.2.0",
    "staged_reason": "This patch rewrites needs_tail_padding_layout and reuses the as-base size machinery introduced by the staged tail-padding bundle, and does not apply without it. 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-empty-class-storage/tests/empty-class-storage.C",
      "bundles/cxx-ada-empty-class-storage/tests/empty_class_storage_consumer.adb"
    ],
    "title": "C++ Ada empty-class storage",
    "upstream_issue": "Pending GCC Bugzilla filing.",
    "upstream_submission_state": "Not yet filed or submitted upstream.",
    "variants": [
      {
        "id": "gcc-13-14",
        "patch": "bundles/cxx-ada-empty-class-storage/patches/gcc-13-14.patch",
        "sha256": "ff4737ff84ec281e7ff8f55c72281f11475cebeb8411ec18ef16251d3d35476f",
        "source_flavors": [
          "linux",
          "darwin_arm64"
        ],
        "versions": [
          "13.2.0",
          "14.2.0"
        ]
      },
      {
        "id": "gcc-15-16",
        "patch": "bundles/cxx-ada-empty-class-storage/patches/gcc-15-16.patch",
        "sha256": "2c33ab55bd9809353035574ea11ef92b2466d4de0648e25e0b11cd800266a666",
        "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
}
