Bug 911 – expression.c:4257: virtual Expression* DotIdExp::semantic(Scope*): Assertion `0' failed.

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-01-31T07:07:00Z
Last change time
2014-02-16T15:26:14Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
fvbommel

Comments

Comment #0 by fvbommel — 2007-01-31T07:07:16Z
----- template Template(Ts...) { alias Ts tuple; } void main() { Template!(0).tuple; } ----- $ dmd ice.d dmd: expression.c:4257: virtual Expression* DotIdExp::semantic(Scope*): Assertion `0' failed. Aborted (core dumped) -----
Comment #1 by thomas-dloop — 2007-04-05T11:39:10Z
Comment #2 by onlystupidspamhere — 2007-04-20T06:23:10Z
*** Bug 1167 has been marked as a duplicate of this bug. ***
Comment #3 by onlystupidspamhere — 2007-06-23T15:10:41Z
*** Bug 1241 has been marked as a duplicate of this bug. ***
Comment #4 by shro8822 — 2007-09-19T16:44:24Z
Can we get this fixed? It is forcing me to uses stuct templates for things and I think that is giving me piles and piles of static data that is preventing stuff from compiling. Bumping Severity because it is blocking me in a big way.
Comment #5 by spam — 2008-03-12T20:05:36Z
stumbled over that one too again ;(
Comment #6 by gide — 2008-12-03T10:00:58Z
I think this has been fixed, but DStress compile/b/bug_expression_4420_C.d case doesn't compile because typeof requires an expression not an empty argument. i.e. typeof() is not valid.
Comment #7 by clugdbug — 2009-05-04T05:29:35Z
This all works for me on both DMD1.042 and 2.029 Windows. Can someone who observed the original bug confirm that it is fixed?
Comment #8 by fvbommel — 2009-05-04T05:56:57Z
This currently produces this (reasonable) error: --- test.d(6): Error: tuple has no effect in expression (tuple(0)) --- for me with DMD 1.043, and using it to instantiate another template works fine. Good enough for me.
Comment #9 by clugdbug — 2009-05-04T06:58:32Z
Fixed sometime before DMD1.042 and D2.029.