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++/13969] [3.4/3.5 Regression] static const value rejected as template parameter


------- 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


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