gcc/testsuite/g++.dg/lookup/conv-5.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Copyright (C) 2004 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 17 Dec 2004 <[email protected]> |
| 5 | |
| 6 | // PR 18721. bogus error |
| 7 | // Origin: Mikael Kilpel?inen <[email protected]> |
| 8 | |
| 9 | struct A { |
| 10 | template<typename T> |
| 11 | operator T() const; |
| 12 | |
| 13 | operator float() const; |
| 14 | }; |
| 15 |