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

Function Call in Conditional Operator causes compilation crash. #1721

Open
Subway2023 opened this issue Feb 8, 2025 · 0 comments
Open

Function Call in Conditional Operator causes compilation crash. #1721

Subway2023 opened this issue Feb 8, 2025 · 0 comments

Comments

@Subway2023
Copy link

Version: v0.3.3: Atlantis

contract C {
	function f() public {}
	function g() public {}

	function test() public {
		true ? f() : g();
	}
}
solang compile --target solana  test.sol

thread 'main' panicked at 'expr should not be in cfg: Poison', src/codegen/constant_folding.rs:658:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant