[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:
Tomas Lindquist Olsen
2008-01-22 00:01:16 +01:00
parent 7825be29ee
commit 94c47aa1fa
33 changed files with 194 additions and 108 deletions

View File

@@ -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;