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

error: member reference base type 'al::span' is not a structure or union #1064

Open
ryandesign opened this issue Nov 20, 2024 · 1 comment
Open

Comments

@ryandesign
Copy link

openal-soft 1.24.0 doesn't build on macOS 10.15:

alc/alu.cpp:2148:9: error: member reference base type 'al::span' is not a structure or union
        .subspan(Offset*FrameStep);
        ^~~~~~~~
alc/alu.cpp:2179:79: error: member reference base type 'al::span' is not a structure or union
        const auto dst = al::span{static_cast<T*>(dstbuf), Offset+SamplesToDo}.subspan(Offset);
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~

Full build log: https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/200661/steps/install-port/logs/stdio

It builds on macOS 12 and later.

This is a regression; 1.23.1 didn't have this problem.

@kcat
Copy link
Owner

kcat commented Nov 20, 2024

Not sure why this is failing. It seems to not recognize al::span{...} as creating a span object on those lines, but similar lines like al::span{*srcbuf}.first(SamplesToDo) right above the latter on line 2178 doesn't result in an error. Might need a newer compiler with better C++17 conformance.

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

2 participants