re PR c++/15875 (rejects pointer to member in template)

PR c++/15875
	* g++.dg/template/ptrmem14.C: New test.

From-SVN: r99100
This commit is contained in:
Mark Mitchell 2005-05-02 15:38:38 +00:00 committed by Mark Mitchell
parent 2c2174426d
commit 985484fde5
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-05-02 Mark Mitchell <mark@codesourcery.com>
PR c++/15875
* g++.dg/template/ptrmem14.C: New test.
2005-05-02 Paul Brook <paul@codesourcery.com>
* gcc.c-torture/execute/20000523-1.c: Fix bytes/bits thinko.

View File

@ -0,0 +1,12 @@
// PR c++/15875
struct A
{
void foo();
};
template<int> void bar()
{
typedef void (A::*fptr)();
fptr ptr = &A::foo;
}