comparison gcc/testsuite/g++.dg/tc1/dr152.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
10 void f(X); // { dg-message "initializing" } 10 void f(X); // { dg-message "initializing" }
11 int foo() 11 int foo()
12 { 12 {
13 X x; 13 X x;
14 f(x); // { dg-error "matching" "matching" } 14 f(x); // { dg-error "matching" "matching" }
15 return 0;
15 } 16 }
16 } 17 }
17 18
18 namespace N2 { 19 namespace N2 {
19 template <class T> 20 template <class T>
28 template <class T> 29 template <class T>
29 int foo() 30 int foo()
30 { 31 {
31 X<T> x; 32 X<T> x;
32 N2::f(x); // { dg-error "matching" "matching" } 33 N2::f(x); // { dg-error "matching" "matching" }
34 return 0;
33 } 35 }
34 36
35 template int foo<float>(); // { dg-message "required from here" } 37 template int foo<float>(); // { dg-message "required from here" }
36 } 38 }