Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
111 | 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 { | |
131 | 18 foo( &junk ); // { dg-error "cannot convert" } junk is an unqualified-id. |
19 foo( &bar ); // { dg-error "cannot convert" } bar is an unqualified-id. | |
111 | 20 } |