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

clang missing pedantic warning for non-constant initializer for aggregate in c89 mode #4678

Closed
efriedma-quic opened this issue Jun 3, 2009 · 2 comments
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema" duplicate Resolved as duplicate

Comments

@efriedma-quic
Copy link
Collaborator

Bugzilla Link 4306
Resolution DUPLICATE
Resolved on Jun 19, 2012 16:10
Version unspecified
OS Linux

Extended Description

Testcase (clang -c89 -pedantic):
struct x {int x;};
void a(int y) { struct x x = {y}; }

This should warn because it's a constraint violation in C89.

@llvmbot
Copy link
Collaborator

llvmbot commented Jun 19, 2012

*** This bug has been marked as a duplicate of bug llvm/llvm-bugzilla-archive#4402 ***

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 27, 2021

mentioned in issue llvm/llvm-bugzilla-archive#4402

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
augusto2112 pushed a commit to augusto2112/llvm-project that referenced this issue May 26, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema" duplicate Resolved as duplicate
Projects
None yet
Development

No branches or pull requests

2 participants