This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23699] [4.0/4.1 Regression] rejects static int as non constant after "extern template"
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2005 18:27:46 -0000
- Subject: [Bug c++/23699] [4.0/4.1 Regression] rejects static int as non constant after "extern template"
- References: <20050902155627.23699.matz@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-03 18:27 -------
Subject: Bug 23699
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-09-03 18:27:39
Modified files:
gcc/cp : pt.c
Log message:
PR c++/23699
* decl2.c (mark_used): Always instantiate static data members
initialized by constant expressions.
* pt.c (instantiate_decl): Instantiate the initializers for static
data members initialized by constant expressions.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.1027&r2=1.1028
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23699