8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/cvt9.C

18 lines
394 B
C++
Raw Normal View History

1997-08-19 03:34:40 -04:00
// Build don't link:
// Special g++ Options: -pedantic-errors
// GROUPS passed conversions
// cvt file
// Message-Id: <m0mVSRj-0000cEC@mobius.veritas.com>
// From: joe@veritas.com (Joe Fasano)
// Subject: gcc-2.2.2 bug report
// Date: Thu, 17 Sep 92 13:27 PDT
typedef int (*widget) ();
class window {
public:
int Isopen ();
};
widget fp = (widget) &window::Isopen; // ERROR - // ERROR -