aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/incomplete-cast1.C
blob: fb08c63e9c37704c4af226de91d85e1692c9f432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// prms-id: 5274
class VHDLIdentifier;

class VHDLPackageProtoRep {
public:
    int thing();
private:
    virtual VHDLIdentifier &actual_name() ;
};
extern void form(const char *format, ... );
int
VHDLPackageProtoRep::thing()
{
    form("package `%s'", (char *)actual_name()); // ERROR - can't convert from incomplete type
    return 0;
}