------- Additional Comments From dberlin at gcc dot gnu dot org 2005-07-14
16:03 -------
Subject: Re: [4.1 regression] ICE expected tree that
contains 'decl with visibility' structure, have 'const_decl' in
decl_linkage, at cp/tree.c:2132
> | fixing.
>
> Please look at section 3.5 before fixing this.
> (besides an numeration does not have storage).
>
I am not a C++ expert. I can't read the C++ standard well.
I simply told him what cp-tree.h said about linkage (please read it),
and asked him what an *enumeration value* (not type) has in terms of
linkage.
I know for a *fact* that it used to return lk_internal in this testcase.
If you want to disagree about how to fix it, please simply look at
decl_linkage and tell me what i am supposed to be returning for a
CONST_DECL.
I really don't have the skills to play language lawyer here, my
inclination is to just make it do what it used to, which is return
lk_internal.
--Dan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22452