[Issue 8795] mixing in "switch" or "interface;" makes dmd segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 28 22:32:55 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8795


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx


--- Comment #1 from hsteoh at quickfur.ath.cx 2013-08-28 22:32:53 PDT ---
In (A), the segfault is happening in SwitchStatement::semantic(Scope*)
[statement.c:3101], from attempting to dereference a null pointer (body =
body->semantic(sc); where body==NULL). Looks like the body is null because it
was an invalid switch mixin, but for some reason the compiler didn't catch the
syntax error and proceeded to create a SwitchStatement with a NULL body.

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


More information about the Digitalmars-d-bugs mailing list