This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10118] Conversion of ptrmem to derived class in template arg fails
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2003 18:49:44 -0000
- Subject: [Bug c++/10118] Conversion of ptrmem to derived class in template arg fails
- References: <20030317033600.10118.philippeb@videotron.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.