gcc/testsuite/g++.old-deja/g++.law/cvt9.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "-pedantic-errors" } |
| 3 | // GROUPS passed conversions |
| 4 | // cvt file |
| 5 | // Message-Id: <[email protected]> |
| 6 | // From: [email protected] (Joe Fasano) |
| 7 | // Subject: gcc-2.2.2 bug report |
| 8 | // Date: Thu, 17 Sep 92 13:27 PDT |
| 9 | |
| 10 | typedef int (*widget) (); |
| 11 | |
| 12 | class window { |
| 13 | public: |
| 14 | int Isopen (); |
| 15 | }; |
| 16 | |
| 17 | widget fp = (widget) &window::Isopen; // { dg-error "" } // ERROR - |