Skip to content

[BUG] Function returning unnamed declaration needs extra semicolon #611

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

Closed
JohelEGP opened this issue Aug 22, 2023 · 2 comments
Closed

[BUG] Function returning unnamed declaration needs extra semicolon #611

JohelEGP opened this issue Aug 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@JohelEGP
Copy link
Contributor

Title: Function returning unnamed declaration needs extra semicolon.

Description:

This is the case when the function followed by Cpp1 code or EOF.

Minimal reproducer (https://cpp2.godbolt.org/z/cP1Gzrzad):

main: () = _ = :i32 = 0;
Commands:
cppfront main.cpp2
clang++17 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -I . main.cpp

Expected result: A well-formed program.

Actual result and error: main.cpp2: error: unexpected end of source file.

@JohelEGP
Copy link
Contributor Author

Doesn't reproduce anymore.

@gregmarr
Copy link
Contributor

I suspect this was fixed by 785c44d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants