Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vector/blas-subvector.h: build failure with GCC 15 (-Wtemplate-body) #319

Open
orlitzky opened this issue Oct 27, 2024 · 0 comments
Open

Comments

@orlitzky
Copy link

GCC 15 is coming soon and we have started to build-test everything with it. This turned up a bug in linbox at https://bugs.gentoo.org/942337, which can be summarized as,

../../linbox/vector/blas-subvector.h: In constructor 'LinBox::BlasSubvector<_Vector>::BlasSubvector(Self_t&, size_t, size_t, size_t)':
../../linbox/vector/blas-subvector.h:121:20: error: 'LinBox::BlasSubvector<_Vector>::Self_t' has no member named 'data'; did you mean 'at'? [-Wtemplate-body[https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-Wno-template-body]]
  121 |             _ptr(V.data()+beg), _size(dim), _inc(inc), _field(&V.field()) {}
      |                    ^~~~

The new warning most likely arises because GCC now verifies templates when they are parsed, rather than only when they are instantiated.

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

No branches or pull requests

1 participant