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

Add workaround for clang 3.3/3.4 #1350

Merged
merged 1 commit into from
Apr 5, 2018
Merged

Conversation

jagerman
Copy link
Member

@jagerman jagerman commented Apr 5, 2018

As reported in #1349, clang before 3.5 can segfault on a function-local
variable referenced inside a lambda. This moves the function-local
static into a separate function that the lambda can invoke to avoid the
issue.

Fixes #1349

As reported in pybind#1349, clang before 3.5 can segfault on a function-local
variable referenced inside a lambda.  This moves the function-local
static into a separate function that the lambda can invoke to avoid the
issue.

Fixes pybind#1349
@jagerman jagerman added this to the v2.2.3 milestone Apr 5, 2018
@jagerman jagerman merged commit 6862cb9 into pybind:master Apr 5, 2018
@jbarlow83 jbarlow83 mentioned this pull request Apr 25, 2018
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

Successfully merging this pull request may close these issues.

None yet

1 participant