Skip to content

io_shaderc.h: add missing <fstream> include#1571

Merged
dj2 merged 1 commit into
google:mainfrom
trofi:gcc-17-fstream
Jun 1, 2026
Merged

io_shaderc.h: add missing <fstream> include#1571
dj2 merged 1 commit into
google:mainfrom
trofi:gcc-17-fstream

Conversation

@trofi

@trofi trofi commented May 30, 2026

Copy link
Copy Markdown
Contributor

gcc-17 cleaned up transitive header inclusion and exposed missing header as a build failure:

In file included from /build/source/libshaderc_util/src/io_shaderc.cc:15:
/build/source/libshaderc_util/include/libshaderc_util/io_shaderc.h:54:31: error: 'std::ofstream' has not been declared
   54 |                               std::ofstream* file_stream, std::ostream* err);
      |                               ^~~

`gcc-17` cleaned up transitive header inclusion and exposed missing
header as a build failure:

```
In file included from /build/source/libshaderc_util/src/io_shaderc.cc:15:
/build/source/libshaderc_util/include/libshaderc_util/io_shaderc.h:54:31: error: 'std::ofstream' has not been declared
   54 |                               std::ofstream* file_stream, std::ostream* err);
      |                               ^~~
```
@dj2 dj2 added the kokoro:run label Jun 1, 2026
@dj2 dj2 enabled auto-merge (squash) June 1, 2026 15:17
@dj2 dj2 merged commit 9e119b3 into google:main Jun 1, 2026
23 checks passed
@trofi trofi deleted the gcc-17-fstream branch June 1, 2026 17:11
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.

3 participants