B
booker
Following code can't pass compilation
class CLS
ublic exception
{
public:
CLS():exception("111")
{
}
};
void Fun()
try
{
throw CLS();
}
catch(...)
{
}
//; //adding this semicolon can pass compilation.
void Fun1()
{
}
if the class CLS does not derive from std::exception,it can pass compilation
too.
i think that this is a bug.
class CLS
ublic exception
{
public:
CLS():exception("111")
{
}
};
void Fun()
try
{
throw CLS();
}
catch(...)
{
}
//; //adding this semicolon can pass compilation.
void Fun1()
{
}
if the class CLS does not derive from std::exception,it can pass compilation
too.
i think that this is a bug.