This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10118] [3.3/3.4 Regression] Conversion of ptrmem to derived class in template arg fails
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2003 18:44:21 -0000
- Subject: [Bug c++/10118] [3.3/3.4 Regression] 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
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |diagnostic
Target Milestone|3.3.2 |---
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-09-05 18:44 -------
This code is invalid; the cast may not appear as part of a template argument.
Clearly, the error message (with the brace notation) is sub-optimal.
I've removed the target milestone because I don't know if the error message has
regressed; the audit trail says that most versions of G++ have correctly
rejected this code.