www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics


digitalmars.D.bugs - [Issue 3097] New: Error at contract block + wierd error at struct template declaration

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

           Summary: Error at contract block + wierd error at struct
                    template declaration
           Product: D
           Version: 2.030
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: trtheanh2 yahoo.com


DMD v2.030 on WinXP 32bit. Intel Pentium M.

dmd FLAGS contr.d -ofcontr.o
dmd FLAGS expr.d -ofexpr.o
dmd FLAGS hello.d -ofhello.o

In debug mode: FLAGS = -c -w -g -debug => dmd -c -w -g -debug ...
    DMD shows error messages at the in{} contract block. Line 116 file expr.d.
    If i comment out the contract block. It compiles OK.

In release mode: FLAGS = -c -w -O -inline -release => dmd -c -w -O -inline
-release ...
    DMD shows error messages at the in{} contract block.
    If i comment out the contract block. It shows some weird error messages.
    If i remove '-release' (still comment out contract block), It compiles OK.

3 files attached are test case.
The contr.d is the trigger for weird error message. If you omit it, the bug
disappear.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3097





--- Comment #1 from The Anh Tran <trtheanh2 yahoo.com>  2009-06-26 22:38:03 PDT
---
Created an attachment (id=405)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=405)
Test case source code.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3097



--- Comment #2 from The Anh Tran <trtheanh2 yahoo.com> 2009-10-05 07:53:12 PDT
---
I've re-tested with dmd v2.033: the bug disappeared.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 05 2009