[Bug c++/28225] [4.0/4.1/4.2 regression] segfault in type_dependent_expression_p
------- Comment #3 from varg at theor dot jinr dot ru 2006-07-05 05:44 -------
The error message given by g++-3.4:
test.cc: In member function `void foo<T1>::operator()(T1&, T3&)':
test.cc:14: error: non-constant `foo<T1>::N_BC' cannot be used as template
argument
test.cc:14: error: template argument 3 is invalid
test.cc:14: error: invalid type in declaration before '(' token
is somewhat confusing, since N_BC is declared as static const:
template<typename T1> struct foo {
static const unsigned N_BC = size_traits<T1>::Size;
Could anyone explain what is exactly invalid in the test case?
Best regards,
Alexei.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28225
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: