[Bug c++/10970] New: Pointer-to-member partial specialization is not used when it should.
pan123_123@yahoo.com
gcc-bugzilla@gcc.gnu.org
Sat May 24 21:04: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=10970
Summary: Pointer-to-member partial specialization is not used
when it should.
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pan123_123@yahoo.com
CC: gcc-bugs@gcc.gnu.org
Here's the information about my platform:
[p:dhcppc2::~] $ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-
checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
[p:dhcppc2::~] $
The following code fails to compile with gcc. It compiles allright with comeau.
----------------------
template <class T>
struct PtoM
{
// enum {value = false};
};
template <class U, class V>
struct PtoM<U V::*>
{
enum {value = true;}
};
// Test class
struct A
{
int func(int) {return 0;}
};
typedef int (A::*MFA)(int);
int main()
{
int i = PtoM<MFA>::value;
return i;
}
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list