Thread overview | |||||
---|---|---|---|---|---|
|
May 05, 2005 DMD crash, wrong arg passed to new Exception | ||||
---|---|---|---|---|
| ||||
This <code>
void main()
{
throw new Exception(new int);
}
</code>
Gives this error message:
test.d(3): constructor object.Exception.this (char[]) does not match
argument types (int*)
Then crashes DMD.
--
Derek Parnell
Melbourne, Australia
http://www.dsource.org/projects/build/ v2.06 released 04/May/2005
http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage
5/05/2005 10:12:59 AM
|
May 05, 2005 Re: DMD crash, wrong arg passed to new Exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | On Thu, 5 May 2005 10:13:26 +1000, Derek Parnell wrote:
Actually its worse than I first thought.
Any "does not match argument types" message causes a debug halt.
--
Derek
Melbourne, Australia
5/05/2005 10:27:59 AM
|
May 05, 2005 Re: DMD crash, wrong arg passed to new Exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | Derek Parnell wrote:
> On Thu, 5 May 2005 10:13:26 +1000, Derek Parnell wrote:
>
> Actually its worse than I first thought.
>
> Any "does not match argument types" message causes a debug halt.
>
src/dmd/func.c (1047) is the culprit.
|
Copyright © 1999-2021 by the D Language Foundation