www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

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

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 2080] New: Static variable without explicit type causes compiler to crash

↑ ↓ ← d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2080

           Summary: Static variable without explicit type causes compiler to
                    crash
           Product: D
           Version: 1.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


const s = foo(); // compiles if type of s is specified explicitly

char[] foo() // seems to fail only if the return type is char[]
{        
    return null;
}


-- 
May 08 2008
→ d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2080





------- Comment #1 from samukha voliacable.com  2008-05-09 07:07 -------
Compiles if the declaration of s goes after foo definition


-- 
May 09 2008
→ d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2080





------- Comment #2 from bugzilla digitalmars.com  2008-05-11 18:45 -------
This does work with dmd 2.013.


-- 
May 11 2008
→ d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2080





------- Comment #3 from samukha voliacable.com  2008-05-12 00:59 -------
Right, but the bug is in the 1.x branch, which is still in use :) 


-- 
May 11 2008