[cfe-dev] extern supported yet?

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Tue Jul 24 09:45:51 PDT 2007


-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[];
                  ^
Additional information:

typedef struct {
        char *name;
        letter *defn;
} char_group;


For all I know this should be valid. At least icc and gcc don't complain about
it. And verifying with my standards and reference works I cannot see why it is
failing.

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
Religion... Is the opium of the people...



More information about the cfe-dev mailing list