Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

expected type, found static #999

Open
Open
@helloqirun

Description

I am using this script https://gist.github.com/fitzgen/187381e358f60efa8194d0b276b4d11a.

The hashtag for my bindgen version is 4dd4ac7 .

$ ./b.sh bindgen abc.h

clang-4.0: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated [-Wdeprecated]
error[E0573]: expected type, found static `c`
 --> /tmp/bindings-hZ74UX.rs:4:26
 |
4 | pub static mut c : [ c ; 0usize ] ;
 | ^ did you mean `b`?
error: aborting due to previous error
Interesting: bindgen emitted Rust code that won't compile!

$ cat abc.h

template < typename a > struct b
{
 static a c[];
};
template < typename c > c b < c >::c[0];

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /