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

Duplication of attribute specifier #354

Closed
simvv-exe opened this issue Dec 1, 2020 · 1 comment
Closed

Duplication of attribute specifier #354

simvv-exe opened this issue Dec 1, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@simvv-exe
Copy link

This example:

unsigned __attribute__((const))
ctz(unsigned x)
{
	return 0;
}

expands as:

unsigned __attribute___attribute__((const)) unsigned int ctz(unsigned int x)
{
  return 0;
}

This leads to duplication of unsigned and __attribute__

@andreasfertig
Copy link
Owner

Hello @RB37,

my apologies but I totally overlooked this issue. Thanks for reporting it. A fix is on its way.

Andreas

@andreasfertig andreasfertig added the bug Something isn't working label Dec 12, 2020
andreasfertig added a commit that referenced this issue Dec 12, 2020
Fixed #354: Attribute which appeared after return type was broken.
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