digitalmars.D.bugs - [Issue 7379] New: DMD segfaults on semantic3 phase when alias enum this;
- d-bugmail puremagic.com (92/92) Jan 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7379
- d-bugmail puremagic.com (8/8) Jan 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7379
- d-bugmail puremagic.com (10/10) Jan 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7379
http://d.puremagic.com/issues/show_bug.cgi?id=7379 Summary: DMD segfaults on semantic3 phase when alias enum this; Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: nazriel6969 gmail.com PST --- // ----- struct Test { enum ENUM { M1, M2, M3 } alias ENUM this; } class Test2 { this(Test test) { } this(string test) { this(Test()); } } void main() {} // --- This code snippet cause DMD to segfault on semantic3 phase. Backtracing showes that problem occurs in mtype.c: 7804 gdb dmd ./run -c ./test.d Full backtrace: // --- No symbol table info available. ArrayBase<Expression>*, int) () No symbol table info available. No symbol table info available. FuncDeclaration*), void*) () No symbol table info available. Expression*, ArrayBase<Expression>*) () No symbol table info available. ArrayBase<Expression>*, int) () No symbol table info available. No symbol table info available. No symbol table info available. No symbol table info available. No symbol table info available. No symbol table info available. No symbol table info available. // --- I've noticed this problem since 2.056. At the moment using DMD from Git 2.058. Operating system: //--- Core(TM) i5 CPU M 450 2.40GHz GenuineIntel GNU/Linux //--- Occurs also on FreeBSD and MacOSX. With both -m32 and -m64. Not tested on Windows tho. Removing //--- alias ENUM this; //--- From test case solves problem. Best Regards, Damian Ziemba -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7379 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5adc29b322bbeaa162e2d731edf014c989fdfe60 fix Issue 7379 - DMD segfaults on semantic3 phase when alias enum this -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 29 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7379 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 29 2012