[cfe-dev] extern supported yet?

Steve Naroff snaroff at apple.com
Tue Jul 24 10:43:52 PDT 2007


On Jul 24, 2007, at 10:06 AM, Chris Lattner wrote:

>
> On Jul 24, 2007, at 9:45 AM, Jeroen Ruigrok van der Werven wrote:
>
>> -On [20070724 17:58], Chris Lattner (clattner at apple.com) wrote:
>>> If you're asking, I assume you hit a bug.  What isn't working?
>>
>> [18:40] [asmodai at nexus] (1130) {139} % clang char.c
>> char.c:166:12: error: redefinition of 'groups'
>> char_group groups[MAX_GROUPS];
>>            ^
>> In file included from char.c:56:
>> ./char.h:133:19: error: previous definition is here
>> extern char_group groups[];
>>                   ^
>
> This is a bug or missing feature in the declaration merging code.
> Steve, can you take a look at this?  Here's a self-contained example:
>
> int array[10];
> extern int array[];
>

This is a missing feature that has a clear FIXME...

/// FIXME: Need to carefully consider tentative definition rules (C99  
6.9.2p2).
/// For example, we incorrectly complain about i1, i4 from C99 6.9.2p4.
///
VarDecl *Sema::MergeVarDecl(VarDecl *New, Decl *OldD) {

MergeTypedefDecl and MergeFunctionDecl are also incomplete. They both  
have
TODO annotations...

snaroff

> -Chris
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20070724/bc6d0cb0/attachment.html>


More information about the cfe-dev mailing list