Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/pr92339.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* PR c++/92339 */ | |
2 /* { dg-options "-std=c++11" } */ | |
3 | |
4 class classA | |
5 { | |
6 template <typename typeB, typeB classA::*> struct typeC | |
7 { | |
8 typeC (classA *); | |
9 }; | |
10 int m_fn1(); | |
11 unsigned long fieldD; | |
12 using typeE = typeC<unsigned long, &classA::fieldD>; | |
13 }; | |
14 int | |
15 classA::m_fn1 () | |
16 { | |
17 typeE (this); | |
18 return 0; | |
19 } |