Bug 376 – assertion in template.c:2141 and wrong return value
Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-09-27T08:46:00Z
Last change time
2014-02-15T13:19:11Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
benoit
Comments
Comment #0 by benoit — 2006-09-27T08:46:10Z
In my actual Project, everytime I have a compile error, after the message an assertion fails:
dmd: template.c:2141: void TemplateInstance::semanticTiargs(Scope*): Assertion `ea' failed.
then, dmd exits, and I think it exits with 0, because build tries to start gcc and this complains about all missing object files.
Please exit dmd with != 0 if an assertion comes up.
Sorry, no executable sample code available.
Comment #1 by smjg — 2006-09-27T16:10:35Z
Then we cannot possible diagnose the bug. Is this just in one of your projects that this is happening? You'll have to do what you can to cut down your code to something that still shows the bug, and then post it somewhere.
Comment #2 by benoit — 2006-09-27T16:32:34Z
(In reply to comment #1)
1. To detect why the assertion fails, this is right. But at the moment I have no time.
2. To let dmd exit with != 0 in case of this or any failing assertion, is perhaps possible without example.
Comment #3 by smjg — 2006-09-28T08:32:12Z
What you are describing are two completely separate issues. As such, they should be separate bug reports.
Comment #4 by thomas-dloop — 2006-09-29T03:20:39Z
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[email protected] schrieb am 2006-09-27:
> http://d.puremagic.com/issues/show_bug.cgi?id=376
> In my actual Project, everytime I have a compile error, after the message an
> assertion fails:
>
> dmd: template.c:2141: void TemplateInstance::semanticTiargs(Scope*): Assertion
> `ea' failed.
>
> then, dmd exits, and I think it exits with 0, because build tries to start gcc
> and this complains about all missing object files.
>
> Please exit dmd with != 0 if an assertion comes up.
>
> Sorry, no executable sample code available.
If possible, please send me the code via email so that Fejagd can reduce
it to a reasonable sized test case.
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFHNlHLK5blCcjpWoRAvpRAJ91+ClHjQuWNHwYH7Qn+usoHXGlcgCgnUsk
aXn0Cf4D99vghDFhaxdaVq0=
=tkpg
-----END PGP SIGNATURE-----
Comment #5 by bugzilla — 2008-06-25T04:13:21Z
dmd exits with 1 on assert.
I cannot do anything else with this without an example file.