August 05, 2012 [Issue 8511] New: Segfault with forward-referenced enum | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8511 Summary: Segfault with forward-referenced enum Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: ice Severity: minor Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: thecybershadow@gmail.com --- Comment #0 from Vladimir Panteleev <thecybershadow@gmail.com> 2012-08-04 23:49:24 PDT --- --- math.d --- real hypot() { enum SQRTMAX; SQRTMAX/2; } --- output --- $ dmd math.d math.d(2): Error: enum SQRTMAX is forward referenced math.d(2): Error: enum SQRTMAX is forward referenced math.d(2): Error: enum SQRTMAX is forward referenced math.d(2): Error: enum SQRTMAX is forward referenced math.d(2): Error: enum SQRTMAX is forward referenced math.d(2): Error: enum SQRTMAX is forward referenced Segmentation fault -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 04, 2013 [Issue 8511] Segfault with forward-referenced enum | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=8511 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |WORKSFORME --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2013-10-03 17:59:03 PDT --- With 2.064 head, produces: test.d(3): Error: type SQRTMAX has no value test.d(3): Error: / has no effect in expression ((SQRTMAX) / 2) test.d(1): Error: function test.hypot has no return statement, but is expected to return a value of type real -- 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