Skip to content

Conversation

@soerengrunewald
Copy link
Collaborator

@soerengrunewald soerengrunewald commented Mar 20, 2025

[Why]
The compilation with GCC 15 fails with:

In file included from tests/incl_SmallVector.cc:23:
include/gul14/SmallVector.h:277:22: error: ‘uint32_t’ does not name a type [-Wtemplate-body]
  277 |     using SizeType = uint32_t;
      |                      ^~~~~~~~
include/gul14/SmallVector.h:37:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include  <stdint>’
   36 | #include "gul14/cat.h"
  +++ |+#include <cstdint>
   37 |

[Why]
The compilation with GCC 15 fails with:
> In file included from tests/incl_SmallVector.cc:23:
> include/gul14/SmallVector.h:277:22: error: ‘uint32_t’ does not name a type [-Wtemplate-body]
>   277 |     using SizeType = uint32_t;
>       |                      ^~~~~~~~
> include/gul14/SmallVector.h:37:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
>    36 | #include "gul14/cat.h"
>   +++ |+#include <cstdint>
>    37 |

Signed-off-by: Soeren Grunewald <soeren.grunewald@desy.de>
@soerengrunewald soerengrunewald added the bug Something isn't working label Mar 20, 2025
@Finii
Copy link
Member

Finii commented Mar 20, 2025

Fixing formatting error...

header ''

image

@Finii
Copy link
Member

Finii commented Mar 20, 2025

How strange, -Wtemplate-body is mentioned indirectly here, but not explained...

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

Copy link
Member

@alt-graph alt-graph left a comment

Choose a reason for hiding this comment

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

👍

@alt-graph alt-graph merged commit 2dca8e3 into main Mar 20, 2025
3 checks passed
@alt-graph alt-graph deleted the bugfix/fix-compilation-with-gcc15 branch March 20, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants