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

merging with K&R declaration mismatch with gcc #3960

Closed
llvmbot opened this issue Feb 15, 2009 · 1 comment
Closed

merging with K&R declaration mismatch with gcc #3960

llvmbot opened this issue Feb 15, 2009 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema"

Comments

@llvmbot
Copy link
Member

llvmbot commented Feb 15, 2009

Bugzilla Link 3588
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

clang & gcc differ in how they treat the following code:

void g0(int, int);
void g0();
//void g0(int);

void f1() {
g0(1, 2, 3);
}

clang merges the declarations so that g0 is g0() after the second declaration; and therefore allows the commented out redefinition, and the call. gcc errors on both.

@DougGregor
Copy link
Contributor

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
augusto2112 added a commit to augusto2112/llvm-project that referenced this issue Feb 25, 2022
[lldb] Read swift metadata from symbol rich binary
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"
Projects
None yet
Development

No branches or pull requests

2 participants