23639 – [3.4/4.0/4.1 regression] Bad error message: not a member of '' (original) (raw)
Description Volker Reichelt 2005-08-30 16:43:23 UTC
For a testcase like
template struct A { enum { e = 0 }; };
int i = A::e;
we get the following error:
error.cc:6: error: type/value mismatch at argument 1 in template parameter list for 'template<int > struct A' error.cc:6: error: expected a constant of type 'int', got 'void' error.cc:6: error: 'e' is not a member of ''
The last line is not really helpful.
Patch will follow soon.