comparison gcc/testsuite/g++.dg/lookup/pr84970.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // PR c++/84970 ICE with deferred initializer
2
3 namespace bob {
4 void a();
5 }
6 using namespace bob;
7
8 void a (int);
9
10 template <typename b>
11 void *x (b)
12 {
13 void (*c)(b) (a);
14
15 return (void *)c;
16 }
17
18 void d () {
19 x (1);
20 }
21