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

Compilation fails with GCC 12 #8

Open
Bouncner opened this issue Feb 18, 2023 · 0 comments
Open

Compilation fails with GCC 12 #8

Bouncner opened this issue Feb 18, 2023 · 0 comments

Comments

@Bouncner
Copy link
Contributor

The library fails to compile under GCC 12:

In file included from ./unittests/test_compact_vector.hpp:11,
[9](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:10)
                 from unittests/test_compact_vector.cc:1:
[10](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:11)
./include/compact_iterator.hpp: In member function ‘void compact::iterator_imp::common<Derived, IDX, BITS, W, UB>::set_bits(W, unsigned int)’:
[11](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:12)
./include/compact_iterator.hpp:631:25: error: expected ‘template’ keyword before dependent template name [-Werror=missing-template-keyword]
[12](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:13)
  631 |     gs<W, BITS, W, UB>::set<TS>(x, self.m_ptr, bits, self.m_offset);
[13](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:14)
      |                         ^~~
[14](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:15)
In file included from ./unittests/test_compact_vector.hpp:11,
[15](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:16)
                 from unittests/test_dyn.cc:1:
[16](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:17)
./include/compact_iterator.hpp: In member function ‘void compact::iterator_imp::common<Derived, IDX, BITS, W, UB>::set_bits(W, unsigned int)’:
[17](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:18)
./include/compact_iterator.hpp:631:25: error: expected ‘template’ keyword before dependent template name [-Werror=missing-template-keyword]
[18](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:19)
  631 |     gs<W, BITS, W, UB>::set<TS>(x, self.m_ptr, bits, self.m_offset);
[19](https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235#step:5:20)
      |                         ^~~

Here is a fork with an adapted GitHub action (Ubuntu 22.04 and GCC 12): https://github.com/Bouncner/compact_vector/actions/runs/4211320950/jobs/7309591235

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