mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Merged DMD commit 1e391e49c2d8ec6fa3aaa9d273efad201b757302:
bugzilla 4938 Regression(2.047) dmd segfault when compiling
This commit is contained in:
@@ -4119,7 +4119,12 @@ void Catch::semantic(Scope *sc)
|
||||
type = new TypeIdentifier(0, Id::Object);
|
||||
type = type->semantic(loc, sc);
|
||||
if (!type->toBasetype()->isClassHandle())
|
||||
error(loc, "can only catch class objects, not '%s'", type->toChars());
|
||||
{
|
||||
if (type != Type::terror)
|
||||
{ error(loc, "can only catch class objects, not '%s'", type->toChars());
|
||||
type = Type::terror;
|
||||
}
|
||||
}
|
||||
else if (ident)
|
||||
{
|
||||
var = new VarDeclaration(loc, type, ident, NULL);
|
||||
|
||||
Reference in New Issue
Block a user