You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hit this found_namespace_keyword assertion failure when trying to parse a C++ file compiled with -std=c++20. My C++ file doesn't use any C++20 functionality, but compiling with -std=c++20 pulls in some C++20 std header files that use C++20's nested inline namespaces. In particular:
nested inline namespace definition: namespace A::B::inline C { ... } is equivalent to namespace A::B { inline namespace C { ... } }. inline may appear in front of every namespace name except the first: namespace A::inline B::C {} is equivalent to namespace A { inline namespace B { namespace C {} } }.
The text was updated successfully, but these errors were encountered:
I hit this
found_namespace_keyword
assertion failure when trying to parse a C++ file compiled with -std=c++20. My C++ file doesn't use any C++20 functionality, but compiling with -std=c++20 pulls in some C++20 std header files that use C++20's nested inline namespaces. In particular:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.sdk/usr/include/c++/v1/concepts
Input C/C++ Header
Bindgen Invocation
or
Actual Results
Expected Results
The nested inline namespace definition should be parsed according to https://en.cppreference.com/w/cpp/language/namespace:
The text was updated successfully, but these errors were encountered: