------- Comment #5 from fang at csl dot cornell dot edu  2005-12-20 16:27 
-------
Subject: Re:  [4.0/4.1/4.2 Regression] Forward explicit
 intantiation declaration doesn't mix well with static integral member

> ------- Comment #3 from nicos at maunakeatech dot com  2005-12-20 09:20 
> -------
> I was under the belief that out of class definitions of const static integral
> members was optional for gcc and that static const N = k; was equivalent to
> enum { N = k};, was I wrong ?

in-class definitions of static const integral types are *permitted* in
lieu of out-of-class definitions -- but you need one or the other.  Also
enums are never allocated memory in object files (data section), as per
W.B.'s remark.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25260

Reply via email to