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

typeof() macro #443

Open
yumamur opened this issue Oct 13, 2023 · 0 comments
Open

typeof() macro #443

yumamur opened this issue Oct 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yumamur
Copy link

yumamur commented Oct 13, 2023

I assume this definition violates some rules

void	func(int x)
{
	typeof(x) k = x;
	if (k)
		++k;
	else
		--k;
}

and also this

void	func(int x)
{
	int	a;

	typeof(a) k = x;
	if (k)
	{
		typeof(x) b = 10;
		--b;
		++k;
	}
	else
		--k;
}
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