c++/2215: ICE on compilation of code with -fhonor-std and -ggdb
Benjamin Kosnik
bkoz@redhat.com
Sat Mar 10 11:14:00 GMT 2001
Fixed in mainline sources. This modified code works (note -fhonor-std
is on by default now.)
#include <exception>
class ALSAException : public std::exception
{
public:
// ALSAException(char const * const call = "call unspecified.");
ALSAException(int newErrorNumber, char const * newCall = "call unspecified");
ALSAException(ALSAException const &);
virtual ~ALSAException() throw();
virtual char const * what() const throw();
virtual int getErrorNumber() const;
virtual char const * getCall() const;
private:
char* call;
// bool const errorNumberValid;
int errorNumber;
char* errorNumberText;
char* errorNameText;
};
More information about the Gcc-bugs
mailing list