This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

971031 to 971105 negative enhancement


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++.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]