mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-27 14:19:02 +01:00
First import of dmd-2.065-b1 (7088593).
The CPP mangling is not integrated yet.
This commit is contained in:
@@ -381,20 +381,21 @@ Type *EnumDeclaration::getMemtype(Loc loc)
|
||||
if (loc.linnum == 0)
|
||||
loc = this->loc;
|
||||
if (scope)
|
||||
{ /* Enum is forward referenced. We don't need to resolve the whole thing,
|
||||
{
|
||||
/* Enum is forward referenced. We don't need to resolve the whole thing,
|
||||
* just the base type
|
||||
*/
|
||||
if (memtype)
|
||||
memtype = memtype->semantic(loc, scope);
|
||||
else
|
||||
{
|
||||
if (!isAnonymous())
|
||||
if (!isAnonymous() && members)
|
||||
memtype = Type::tint32;
|
||||
}
|
||||
}
|
||||
if (!memtype)
|
||||
{
|
||||
if (!isAnonymous())
|
||||
if (!isAnonymous() && members)
|
||||
memtype = Type::tint32;
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user