blob: 432929272e89f73934f3a2513cb47fa091a2b489 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/60274
typedef const char *const& ProtocolIdType;
template <ProtocolIdType protocolId>
struct C {
typedef int ProtocolVersion;
struct D {
ProtocolVersion GetProtocolVersion();
};
};
template <ProtocolIdType protocolId>
typename C<protocolId>::ProtocolVersion C<protocolId>::D::GetProtocolVersion()
{
return 1;
}
|