[cfe-dev] extern supported yet?

Chris Lattner clattner at apple.com
Tue Jul 24 10:06:09 PDT 2007


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[];

-Chris



More information about the cfe-dev mailing list