This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20098] Unresolved dependent "static const" symbol in template


------- Additional Comments From wwieser at gmx dot de  2005-02-20 00:49 -------
Subject: Re:  Unresolved dependent "static const" symbol in template

On Sunday 20 February 2005 01:34, pinskia at gcc dot gnu dot org wrote:
> Yes you need to have declare the storage for the static variables (even
> though they are constant you still need the storage area, for an example if
> you take the address of the variable where is the storage of the variable
> if you have not declared it).
>
Thanks for pointing out. 

Then I agree that it is a missed optimization which previous versions 
from 3.4 up to some weeks ago in 4.0 still were able to perform. 

Wolfgang


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]