mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
Fixed: tango.io.Console seems to be working now.
This commit is contained in:
@@ -1099,6 +1099,7 @@ int VarDeclaration::hasPointers()
|
||||
Expression *VarDeclaration::callAutoDtor()
|
||||
{ Expression *e = NULL;
|
||||
|
||||
//printf("VarDeclaration::callAutoDtor() %s\n", toChars());
|
||||
if (storage_class & (STCauto | STCscope) && !noauto)
|
||||
{
|
||||
for (ClassDeclaration *cd = type->isClassHandle();
|
||||
@@ -1109,6 +1110,8 @@ Expression *VarDeclaration::callAutoDtor()
|
||||
* classes to determine if there's no way the monitor
|
||||
* could be set.
|
||||
*/
|
||||
if (cd->isInterfaceDeclaration())
|
||||
error("interface %s cannot be scope", cd->toChars());
|
||||
if (1 || onstack || cd->dtors.dim) // if any destructors
|
||||
{
|
||||
// delete this;
|
||||
|
||||
Reference in New Issue
Block a user