c++/10750: [3.4 regression] error with using template template expression in static const initializer
bangerth@dealii.org
bangerth@dealii.org
Mon May 12 15:39:00 GMT 2003
Old Synopsis: 3.4 parser error with template template parameters
New Synopsis: [3.4 regression] error with using template template expression in static const initializer
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon May 12 15:36:02 2003
State-Changed-Why:
Confirmed. A regression on mainline w.r.t. 3.3.
For reference, here is the code:
------------------------
template <typename T,
template <typename> class P>
struct C {
static const bool flag = P<T>::flag;
static const bool value = flag;
};
------------------------------
g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
g/x>
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:5: error: `C<T, P>::flag' cannot appear in a constant-expression
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10750
More information about the Gcc-bugs
mailing list