Skip to content

Cannot find type '__BindgenOpaqueArray' in this scope #3027

@dtolnay

Description

@dtolnay

Repro:

cargo run --manifest-path bindgen-cli/Cargo.toml -- \
    --enable-cxx-namespaces \
    <(echo '
        namespace repro {
            template<unsigned int N> class Array { int inner[N]; };
            class C { Array<3> arr; };
        }
    ') \
    -- \
    -xc++ \
    | rustc --crate-type=lib --edition=2021 /dev/stdin

Bisects to #2880. @GKFX

This impacts Clang's implementation of #include <chrono>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions