comparison gcc/testsuite/g++.old-deja/g++.robertl/eb131.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
13 void foo( void (a::*member)(float) ); // { dg-message "void a::foo|no known conversion" } 13 void foo( void (a::*member)(float) ); // { dg-message "void a::foo|no known conversion" }
14 }; 14 };
15 15
16 a::a() 16 a::a()
17 { 17 {
18 foo( &junk ); // { dg-error "match" } junk is an unqualified-id. 18 foo( &junk ); // { dg-error "cannot convert" } junk is an unqualified-id.
19 foo( &bar ); // { dg-error "match" } bar is an unqualified-id. 19 foo( &bar ); // { dg-error "cannot convert" } bar is an unqualified-id.
20 } 20 }