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

Printing double semicolons clashes with double underscores #993

Open
sarranz opened this issue Dec 13, 2024 · 0 comments
Open

Printing double semicolons clashes with double underscores #993

sarranz opened this issue Dec 13, 2024 · 0 comments
Labels

Comments

@sarranz
Copy link
Collaborator

sarranz commented Dec 13, 2024

Jean-Christophe noticed that this program

export fn ble::e() -> reg u64 {
    reg u64 x = 0;
    return x;
}

export fn ble__e() -> reg u64 {
    reg u64 x = 1;
    return x;
}

generates

_ble__e:
ble__e:
	movq	$1, %rax
	ret
_ble__e:
ble__e:
	movq	$0, %rax
	ret

which is not good.
The compiler does check that we don't have a namespace ble with a function e, so we probably want to extend that?.

@sarranz sarranz added the bug label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant