[cfe-commits] r41592 - in /cfe/trunk: AST/ASTContext.cpp AST/Type.cpp CodeGen/CodeGenTypes.cpp Sema/SemaDecl.cpp include/clang/AST/ASTContext.h include/clang/AST/Type.h

[lots and lots and lots of code snipped]

Yay, thank you :smiley:

I can now -fsyntax-only all the C bits of my program without any
diagnostics generated. Well, once I'd fixed the missing "extern" that
GCC wasn't telling me about for some reason.

-Keith

Which missing extern? This might be a clang bug still,

-Chris

Author: snaroff
Date: Wed Aug 29 20:06:46 2007
New Revision: 41592

URL: http://llvm.org/viewvc/llvm-project?rev=41592&view=rev
Log:

Fix the following redefinition errors submitted by Keith Bauer...

[lots and lots and lots of code snipped]

Yay, thank you :smiley:

I can now -fsyntax-only all the C bits of my program without any
diagnostics generated. Well, once I'd fixed the missing "extern" that
GCC wasn't telling me about for some reason.

Which missing extern? This might be a clang bug still,

We still have some issues with tentative defns (i.e. where the extern is omitted).
Now that the array stuff is fixed (though I still have a little cleanup), I will
get back to working on tentative defns.

snaroff

Yep, this is a clang bug. "struct foo f" should have common linkage, and be merged with the later full definition. C is a great language ;-). GCC should reject this with -fno-common.

-Chris