comparison gcc/testsuite/g++.old-deja/g++.robertl/eb131.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 // { dg-do assemble }
2 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
3 // Reported against EGCS snaps 98/06/18.
4
5 struct a {
6 a();
7 void junk( float );
8 void junk( double );
9
10 void bar( double );
11 void bar( float );
12
13 void foo( void (a::*member)(float) ); // { dg-message "void a::foo|no known conversion" }
14 };
15
16 a::a()
17 {
18 foo( &junk ); // { dg-error "match" } junk is an unqualified-id.
19 foo( &bar ); // { dg-error "match" } bar is an unqualified-id.
20 }