971031 to 971105 negative enhancement
David Binderman
davidb@msi-uk.com
Fri Nov 7 06:11:00 GMT 1997
hello there,
The following source code used to compile ok on 971031
typedef unsigned long Xv_opaque;
class DynaString
{
public:
DynaString();
DynaString( const DynaString& dynaStr );
DynaString( const long n );
~DynaString();
int operator ==( const char* const string ) const;
};
class DDE_Defaults
{
public:
DynaString GetHost();
DynaString GetService();
DynaString GetDatabase();
};
extern DDE_Defaults* ddeDefaults;
void
f()
{
DynaString tempHost, tempService, tempDatabase;
if( (tempHost = ddeDefaults->GetHost()) == 0
|| (tempService = ddeDefaults->GetService()) == 0
|| (tempDatabase = ddeDefaults->GetDatabase()) == 0
)
{
}
}
but on 971105 it crashes the compiler, around line 2078 of gcc/except.c
Regards
David C Binderman MSc BSc (Hons) +44 171 971 8814
contracting at Mobile Systems International in the Docklands, London, England
"There is no substitute for skill, taste & experience when programming"
Dr Stroustrup, inventor of C++.
More information about the Gcc-bugs
mailing list