Skip to content

[C++] Partially undo commit a8d828016e54adfc403326d8e56d93e7c75c27fc - #3393

Merged
parrt merged 1 commit into
antlr:masterfrom
jcking:cpp-implicit-capture
Dec 6, 2021
Merged

parrt merged 1 commit into
antlr:masterfrom
jcking:cpp-implicit-capture

Conversation

@jcking

@jcking jcking commented Dec 6, 2021

Copy link
Copy Markdown
Collaborator

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

jcking commented Dec 6, 2021

Copy link
Copy Markdown
Collaborator Author

@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

KvanTTT commented Dec 6, 2021

Copy link
Copy Markdown
Member

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