Skip to content

fix: gcc 15 build, include <cstdint>#2

Merged
gouzil merged 1 commit into
paddlefrom
fix/gcc15_build
Jun 3, 2026
Merged

fix: gcc 15 build, include <cstdint>#2
gouzil merged 1 commit into
paddlefrom
fix/gcc15_build

Conversation

@gouzil

@gouzil gouzil commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

本 PR 修复 GCC 15 下的构建问题,在 gloo/types.h 中补充直接依赖的 <cstdint> 头文件。

Changes

  • gloo/types.h 中添加 #include <cstdint>

background

gloo/types.h 使用了固定宽度整数类型,但此前没有直接包含 <cstdint>。GCC 15 下该依赖不再能稳定通过其他头文件间接获得,因此会暴露缺失头文件导致的编译失败。

相关链接:

Copilot AI review requested due to automatic review settings June 3, 2026 14:05
@gouzil gouzil merged commit 5a4c337 into paddle Jun 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a GCC 15 build failure by making gloo/types.h explicitly include <cstdint>, ensuring fixed-width integer types (e.g., uint8_t, uint32_t, uint64_t) are available without relying on transitive includes.

Changes:

  • Add #include <cstdint> to gloo/types.h to satisfy direct dependency on fixed-width integer type definitions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants