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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Sep 2005 16:37:53 -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 pinskia at gcc dot gnu dot org 2005-09-02 16:37 -------
Reduced testcase:
template<typename _CharT > class basic_string;
typedef basic_string<char> string;
template<typename _CharT>
struct basic_string
{
static const int npos = -1;
};
extern template class basic_string<char>;
struct A
{
static const long npos = string::npos;
};
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-02 16:37:51
date| |
Summary|[4.0/4.1 Regression] patch |[4.0/4.1 Regression] rejects
|for #23099 breaks glibmm |static int as non constant
| |after "extern template"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23699