Skip to content

Fix #524: wrong string entrypoint decl in C++ - #527

Merged
andreasabel merged 3 commits into
masterfrom
issue-524
Jan 28, 2026
Merged

andreasabel merged 3 commits into
masterfrom
issue-524

Conversation

@andreasabel

Copy link
Copy Markdown
Member

@andreasabel

Copy link
Copy Markdown
Member Author

@TheGhoul21 Please check whether this fixes the problem for you.

@andreasabel andreasabel added C++ parser Issues concerning parser generating regression in 2.9.2 Regression that first appeared in BNFC 2.9.2 entrypoints Concerning entry points for the parser and the `entrypoints` directive and removed parser Issues concerning parser generating labels Jan 26, 2026
@TheGhoul21

Copy link
Copy Markdown

yes, it does fix perfectly the issue on my end. I was wondering: this is not a regression on some other parts of bnfc here? I mean: Probably there was a reason why this had been written this way in the first place? Anyway: using this specific version of the bnfc tool fixes my problem and I don't need to add special overwrites for my code to work.

@andreasabel

Copy link
Copy Markdown
Member Author

I think it was just a bug introduced in 2.9.2.
You can also try out 2.9.1.1 (a re-release of 2.9.1 I made yesterday as 2.9.1 did not compile anymore).
There, you should also get the correct entrypoints (for STL, maybe not for NoSTL).

@TheGhoul21

Copy link
Copy Markdown

Yes, I definitely confirm that. Using the version 2.9.1.1 works like a charm, 2.9.2 has the issue and clearly this new version, 2.9.6.2 works like a charm as well.

@andreasabel
andreasabel merged commit 20ac2e0 into master Jan 28, 2026
@andreasabel
andreasabel deleted the issue-524 branch January 28, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ entrypoints Concerning entry points for the parser and the `entrypoints` directive regression in 2.9.2 Regression that first appeared in BNFC 2.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C++ backend: Parser.H declares pX(const char*) but implementation defines psX(const char*)

2 participants