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

Type: disallow type specifiers from combining with types specified by typedefed names #808

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

ehaas
Copy link
Collaborator

@ehaas ehaas commented Dec 29, 2024

Closes #731

Previously we would allow things like:

typedef long foo;
typedef unsigned foo bar;

To define bar as unsigned long. Seems reasonable but apparently not allowed by C.

@Vexu Vexu merged commit 49dd95c into Vexu:master Dec 31, 2024
3 checks passed
@ehaas ehaas deleted the typedef-fix branch December 31, 2024 15:41
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

Successfully merging this pull request may close these issues.

Duplicate long typedef disallowed
2 participants