www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 382] New: Critical "Previous definition different" bug

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=382

           Summary: Critical "Previous definition different" bug
           Product: D
           Version: 0.167
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: boris.kolar globera.com


Steps to reproduce:

1. Create 2 files (Site.d and Tools.d):
[Site.d]
module Site;
import Tools;

void test(List!(char) list) {}

[Tools.d]
module Tools;

struct List(T) {
        interface A {}
}

int main(char[][] args) {
        List!(char) list;
        return 0;
}

2. Now compile using the following commands:



... should report error "Previous definition different"

I market this bug as blocker, because I know of no workaround (at least one
that would work with compiling files one by one).


-- 
Sep 27 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=382


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |rejects-valid





So the error message is just "Previous definition different" with no indication
of what or where???


-- 
Sep 27 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=382






Full compiler output:

parse     Site
semantic  Site
semantic2 Site
semantic3 Site
code      Site
generating code for function 'test'

parse     Tools
semantic  Tools
semantic2 Tools
semantic3 Tools
code      Tools
generating code for function 'main'

C:\Home\Programs\D\dmd\bin\..\..\dm\bin\link.exe
Site+Tools,Bug.exe,,user32+kernel32/noi;

OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

Tools.obj(Tools)  Offset 00178H Record Type 0091 
 Error 1: Previous Definition Different :
__Interface_5Tools11__T4ListTaZ4List1A
--- errorlevel 1


-- 
Sep 28 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=382


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 0.169


-- 
Oct 10 2006