public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10118: Conversion of ptrmem to derived class in template arg fails
@ 2003-03-18 0:26 bangerth
0 siblings, 0 replies; only message in thread
From: bangerth @ 2003-03-18 0:26 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, philippeb
Old Synopsis: Convertion of pointer to member function to derived class at compile time
New Synopsis: Conversion of ptrmem to derived class in template arg fails
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Mar 18 00:26:06 2003
State-Changed-Why:
Confirmed:
-------------------------
struct A { void foo(); };
struct B : A {};
typedef void (B::*B_ptr) ();
template <class T, void (T::* U)()> struct CT {};
CT<B, (B_ptr) &A::foo> c;
--------------------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:8: error: `{A::foo(), 0}' is not a valid template argument
x.cc:8: error: it must be a pointer-to-member of the form `&X::Y'
x.cc:8: error: expected constructor, destructor, or type conversion
This never compiled from 2.95 to present mainline.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10118
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-18 0:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-18 0:26 c++/10118: Conversion of ptrmem to derived class in template arg fails bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).