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

Rebinding to boost::small_vector stops working starting from GCC 13 #73

Closed
jcelerier opened this issue Apr 19, 2023 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@jcelerier
Copy link
Contributor

Online repro: https://gcc.godbolt.org/z/aMaTWeWj5

I'm not sure if the issue wrt allocator rebinding is in here or in boost::small_vector, if you happen to have an idea...

@jcelerier jcelerier added the bug Something isn't working label Apr 19, 2023
@martinus
Copy link
Owner

martinus commented Apr 20, 2023

I looked into this, as far as I can say this is a bug in boost::small_vector. In this commit libstdc++ added some safety checks to ensure the allocators are working correctly: gcc-mirror/gcc@64c986b

And I think due to these the build fails. I don't think I can do anything about this in my code, I'd report a bug in boost

Also, semi-related, I have created an issue to add allocator support to ankerl::svector, then this would be an alternative: martinus/svector#51

@martinus
Copy link
Owner

martinus commented Apr 20, 2023

Here is a smaller reproducer, with just boost: https://gcc.godbolt.org/z/b4TnYdWxK
Best report that issue here: https://github.com/boostorg/container/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc

@jcelerier
Copy link
Contributor Author

thanks!

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

No branches or pull requests

2 participants