This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20098] Unresolved dependent "static const" symbol in template
- From: "wwieser at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2005 00:49:39 -0000
- Subject: [Bug c++/20098] Unresolved dependent "static const" symbol in template
- References: <20050220001048.20098.wwieser@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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