[Bug c++/10118] Conversion of ptrmem to derived class in template arg fails
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Sep 5 18:49:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10118
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3/3.4 Regression] |Conversion of ptrmem to
|Conversion of ptrmem to |derived class in template
|derived class in template |arg fails
|arg fails |
------- Additional Comments From bangerth at dealii dot org 2003-09-05 18:49 -------
Since this is invalid code, it's no longer a regression.
Also, the error message is not a regression. 2.95 gives
g/x> c++ -c x.cc
x.cc:7: `(&A::foo)' is not a valid template argument
x.cc:7: it must be a pointer-to-member of the form `&X::Y'
x.cc:7: ANSI C++ forbids declaration `c' with no type
That's about as bad as what we now get. The message is clearly
suboptimal nevertheless, so let's keep this PR open.
W.
More information about the Gcc-bugs
mailing list