comparison gcc/testsuite/g++.dg/concepts/pr60390.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++/60390
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-fconcepts" }
4
5 struct A
6 {
7 void foo (auto);
8 };
9
10 class B
11 {
12 int m;
13 friend void A::foo (auto);
14 };
15
16 void A::foo (auto i)
17 {
18 B b;
19 b.m = i;
20 }
21
22 int main ()
23 {
24 A a;
25 a.foo (7);
26 }