Skip to content

Conversation

jcking
Copy link
Collaborator

@jcking jcking commented Dec 6, 2021

Partially undo a previous commit. I misread the original preprocessor condition. It is actually testing for C++ 20, not C++ 17. So it needs to stay otherwise compilers conformant to C++ 17 without any extensions will fail.

@jcking
Copy link
Collaborator Author

jcking commented Dec 6, 2021

@parrt PTAL somewhat quickly. This is a simple revert of a previous change. That preprocessor condition needs to remain. Currently C++20 is required, when we intended C++17. The error is explicit capture of 'this' with a capture default of '=' is a C++20 extension [-Werror,-Wc++20-extensions].

@parrt parrt added this to the 4.9.4 milestone Dec 6, 2021
@parrt parrt merged commit 72e0627 into antlr:master Dec 6, 2021
@KvanTTT
Copy link
Member

KvanTTT commented Dec 6, 2021

Thank you for the patch. The last weekend I tried to set up msbuild C++ compilation but it was failing with a similar error. I wanted to create an issue but it seems this patch fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants