[Issue 8795] New: mixing in "switch" or "interface; " makes dmd segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 10 13:10:56 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8795
Summary: mixing in "switch" or "interface;" makes dmd segfault
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nilsbossung at googlemail.com
--- Comment #0 from Nils <nilsbossung at googlemail.com> 2012-10-10 12:46:49 PDT ---
A) mixing in "switch"
---
cat > test.d <<code
void s() {mixin("switch");}
code
dmd -c -o- test.d
---
test.d(1): Error: found 'EOF' when expecting '('
test.d(1): Error: expression expected, not 'EOF'
test.d(1): Error: found 'EOF' when expecting ')'
test.d(1): Error: found 'EOF' instead of statement
Segmentation fault (core dumped)
---
B) mixing in "interface;"
---
cat > test.d <<code
mixin("interface;");
code
dmd -c -o- test.d
---
test.d(1): Error: anonymous classes not allowed
Segmentation fault (core dumped)
---
--
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