Skip to content

[build] string.cppm: size_t unqualified under GCC modules (no global module fragment) #1407

Closed

Description

@caomengxuan666

第三堵墙:继 #1401(version.cppm)与 #1406(regex.cppm)之后,GCC 模块配置下 mini 构建在 src/utils/string.cppm 处停住。

证据

修复形(下一任定最小正确形)

  • 补一个带 #include <cstddef> 的全局模块片段,或把两处声明限定为 std::size_t。

Regression seed

  • mini 构建在 GCC 模块配置下跑过 string.cppm.obj(且整轮通过)即为钉。

归宿

相关

Activity

  1. added
    bug
    noise-platform
    on Oct 26, 2026
  2. caomengxuan666 commented on Oct 27, 2026

    @caomengxuan666
    MemberAuthor

    Status check (2026-10-27 integration sweep): the fix itself is small and well-described (unqualified size_t needs std:: under GCC modules since the global module fragment only imports macros), but no verification path exists right now — the local dev box and CI (build-winuxcmd.yml) are MSVC-only, and MSVC accepts the current code by design. Shipping a blind edit to module code without a GCC compile gate would risk a fourth regression of the same class.

    Recommended path before this gets fixed: stand up a GCC 15+ (mingw-w64 UCRT64, -std=c++23 with import std;) compile job — either a CI matrix entry or a documented local MSYS2 environment — as the verification gate for this whole wall series (#1401 → #1406 → #1407 → #1412). Once the gate exists the code fixes are minutes of work. Keeping open with the blocked-on-toolchain label intent until then.

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

Metadata

Metadata

Labels

bugnoise-platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions