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

Compound literal in initializer #14

Closed
michaelforney opened this issue Apr 28, 2019 · 1 comment
Closed

Compound literal in initializer #14

michaelforney opened this issue Apr 28, 2019 · 1 comment

Comments

@michaelforney
Copy link

Test case:

int main(void) {
	int a[] = {1, (int){2}};
	return a[0] != 1;
}

Instead of {1, 2}, a gets initialized to {0, 2}.

@larmel
Copy link
Owner

larmel commented May 1, 2019

Thank you for reporting! This is fixed with 2287ab34.

@larmel larmel closed this as completed May 1, 2019
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

2 participants