This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13969] [3.4/3.5 Regression] static const value rejected as template parameter
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 23:52:58 -0000
- Subject: [Bug c++/13969] [3.4/3.5 Regression] static const value rejected as template parameter
- References: <20040202001133.13969.rwgk@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-02-02 23:52 -------
Confirmed. This looks like a dependent-ness issue. Here's a cut-down:
--------------
struct B {
static const int N=10;
};
template <int> struct X {};
template <typename> struct S {
static const int N = B::N;
X<N> x;
};
template class S<float>;
-------------------
Gcc thinks that S::N is non-dependent, but in fact it is.
This is a regression against 3.3.3.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-02-02 23:52:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13969