This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/10118] Conversion of ptrmem to derived class in template arg fails


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]