September 11, 2012 [Issue 8641] New: Segfault on accessing undefined identifier | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8641 Summary: Segfault on accessing undefined identifier Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: maxim@maxim-fomin.ru --- Comment #0 from Maxim Fomin <maxim@maxim-fomin.ru> 2012-09-11 08:18:43 PDT --- union MutableConst(T, bool isDefaultMutable) { const T c; T i; static if (isMutable) //bug alias i this; else alias c this; } struct S { MutableConst!(int, false) val; } void main() { } DMD produces three times error "hello.d(5): Error: undefined identifier isMutable " and then crashes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 04, 2013 [Issue 8641] Multiple errors on accessing undefined identifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to Maxim Fomin | http://d.puremagic.com/issues/show_bug.cgi?id=8641 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice |diagnostic CC| |andrej.mitrovich@gmail.com Summary|Segfault on accessing |Multiple errors on |undefined identifier |accessing undefined | |identifier --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-04 13:40:30 PST --- Not an ICE since 2.061, however the diagnostic prints out too many errors: test.d(5): Error: undefined identifier isMutable test.d(5): Error: undefined identifier isMutable test.d(5): Error: undefined identifier isMutable test.d(5): Error: undefined identifier isMutable test.d(13): Error: template instance test.MutableConst!(int, false) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation