http://d.puremagic.com/issues/show_bug.cgi?id=6599
Summary: Bus error with non-constant expression and struct initializer Product: D Version: D1 & D2 Platform: Other OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: d...@me.com --- Comment #0 from Jacob Carlborg <d...@me.com> 2011-09-03 06:54:22 PDT --- Compiling the following code results in a bus error: class Orbit { Repository repository = Repository(); } struct Repository { string fileProtocol = "file://"; string source = fileProtocol ~ "/usr/local/orbit/repository"; } void main () {} DMD 1.069 and 2.054 Mac OS X 10.6.8 GDB session: (gdb) r Starting program: /Users/doob/.dvm/compilers/dmd-1.069/bin/dmd test.d Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x000529b0 in InterfaceDeclaration::~InterfaceDeclaration () (gdb) bt #0 0x000529b0 in InterfaceDeclaration::~InterfaceDeclaration () #1 0x000caef8 in TypeTypeof::~TypeTypeof () #2 0x000cac0d in TypeTypeof::~TypeTypeof () #3 0x000097b8 in StaticIfDeclaration::~StaticIfDeclaration () #4 0x0000a930 in StaticIfDeclaration::~StaticIfDeclaration () #5 0x00057aee in TemplateParameters::~TemplateParameters () #6 0x0002958b in ErrorExp::~ErrorExp () #7 0x000b9992 in StructInitializer::~StructInitializer () #8 0x000b72d8 in StructInitializer::~StructInitializer () #9 0x0000219f in ?? () #10 0x000020cd in ?? () (gdb) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------