Skip to content

Fix compilation error with gcc-7.2.0 - #3066

Merged
vitaut merged 1 commit into
fmtlib:masterfrom
gsjaardema:patch-4
Aug 30, 2022
Merged

vitaut merged 1 commit into
fmtlib:masterfrom
gsjaardema:patch-4

Conversation

@gsjaardema

Copy link
Copy Markdown
Contributor

Without the added line, the gcc-7.2.0 compiler will give the following error:

/opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1240:8: error: uninitialized variable 'buffer' in 'constexpr' function
   Char buffer[digits10<UInt>() + 1];
        ^~~~~~

See https://godbolt.org/z/fh7TMs9qs

Without the added line, the gcc-7.2.0 compiler will give the following error:
```
/opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1240:8: error: uninitialized variable 'buffer' in 'constexpr' function
   Char buffer[digits10<UInt>() + 1];
        ^~~~~~
```
See https://godbolt.org/z/fh7TMs9qs
@vitaut
vitaut merged commit 40e414d into fmtlib:master Aug 30, 2022
@vitaut

vitaut commented Aug 30, 2022

Copy link
Copy Markdown
Contributor

Thank you

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