Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!comp.vuw.ac.nz!windy!srwmrbd From: SRWMRBD@windy.dsir.govt.nz (ROBERT) Newsgroups: comp.lang.c++ Subject: Glockenspiel C++ bug Message-ID: <640@windy.dsir.govt.nz> Date: 30 Aug 89 08:39:28 GMT Organization: DSIR Wellington, NZ Lines: 20 /* Bug in MsDos version of Glockenspiel C++ (latest version) I am using a PC with Glockenspiel C++ and Microsoft C5.1. I get a C syntax error with the following code. The problem goes away if I swap the order of the 2 class statements or replace double by int or delete the AAA initialiser. */ class AAA; class XXX { public: AAA operator-(double); }; class AAA { public: AAA(AAA&); }; void test1() { XXX x; double f=1; AAA sr=x-f; }