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

<algorithm> header fails to compile in injection-2 branch #40

Open
Erbureth opened this issue Mar 11, 2018 · 0 comments
Open

<algorithm> header fails to compile in injection-2 branch #40

Erbureth opened this issue Mar 11, 2018 · 0 comments

Comments

@Erbureth
Copy link

When compiling source containing the header, it fails with following error:

In file included from /usr/lib/gcc/x86_64-linux-gnu/8.0.1/../../../../include/c++/8.0.1/algorithm:62:
In file included from /usr/lib/gcc/x86_64-linux-gnu/8.0.1/../../../../include/c++/8.0.1/bits/stl_algo.h:66:
/usr/lib/gcc/x86_64-linux-gnu/8.0.1/../../../../include/c++/8.0.1/bits/uniform_int_dist.h:176:2: error: expected member name or ';' after declaration specifiers
        __generate(_ForwardIterator __f, _ForwardIterator __t,
        ^
/usr/lib/gcc/x86_64-linux-gnu/8.0.1/../../../../include/c++/8.0.1/bits/uniform_int_dist.h:286:7: error: out-of-line definition of '__generate_impl' does not match any declaration in 'uniform_int_distribution<_IntType>'
      __generate_impl(_ForwardIterator __f, _ForwardIterator __t,
      ^~~~~~~~~~~~~~~

It looks like the header names one of it's functions __generate which is now a special token in the clang branch.

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

1 participant