Thread overview
[Issue 376] New: assertion in template.c:2141 and wrong return value
Sep 27, 2006
d-bugmail
Sep 27, 2006
d-bugmail
Sep 27, 2006
d-bugmail
Sep 28, 2006
d-bugmail
Sep 29, 2006
Thomas Kuehne
Jun 25, 2008
d-bugmail
September 27, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=376

           Summary: assertion in template.c:2141 and wrong return value
           Product: D
           Version: 0.166
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: benoit@tionex.de


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.


-- 

September 27, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=376


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |ice-on-invalid-code




------- Comment #1 from smjg@iname.com  2006-09-27 16:10 -------
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.


-- 

September 27, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=376





------- Comment #2 from benoit@tionex.de  2006-09-27 16:32 -------
(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.


-- 

September 28, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=376





------- Comment #3 from smjg@iname.com  2006-09-28 08:32 -------
What you are describing are two completely separate issues.  As such, they should be separate bug reports.


-- 

September 29, 2006
d-bugmail@puremagic.com 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


June 25, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=376


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #5 from bugzilla@digitalmars.com  2008-06-25 04:13 -------
dmd exits with 1 on assert.

I cannot do anything else with this without an example file.


--