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:
parent
2c2174426d
commit
985484fde5
@ -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.
|
||||
|
12
gcc/testsuite/g++.dg/template/ptrmem14.C
Normal file
12
gcc/testsuite/g++.dg/template/ptrmem14.C
Normal file
@ -0,0 +1,12 @@
|
||||
// PR c++/15875
|
||||
|
||||
struct A
|
||||
{
|
||||
void foo();
|
||||
};
|
||||
|
||||
template<int> void bar()
|
||||
{
|
||||
typedef void (A::*fptr)();
|
||||
fptr ptr = &A::foo;
|
||||
}
|
Loading…
Reference in New Issue
Block a user