summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash47.C
blob: 212bedaac8dbd0b05d2b4969ee6cdefae805d892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// Origin: Rick Campbell <rick.campbell@db.com>

template <class Owner, typename Type>
struct DataMember
{
    inline DataMember (Type Owner::* data_member);

    Type Owner::* _data_member;
};

template <class Owner, typename Type>
inline
DataMember<Owner,Type>::DataMember (Type Owner::* data_member)
    : _data_member (data_member)
{
}