Assertion failure: 'deco' on line 536 in file 'mtype.c'
Tested with DMD-Windows 0.160 and 0.161.
Very easy workaround (just add parentheses).
---
template echidna(char[] str)
{
const int echidna = 1;
}
// Must be 'typedef', can be any function or delegate
typedef int function (int) platypus;
// If you uncomment this next line, _both_ asserts will compile!
//static assert( echidna!((platypus).mangleof) == 1);
static assert( echidna!(platypus.mangleof) == 1);
Comment #1 by clugdbug — 2006-08-24T07:58:57Z
This appears to have been sliently fixed - at least in works in DMD 0.165 Windows.
Probably should be in DStress, though, in case it reappears.
Oskar Linde wrote:
> Thomas Kuehne wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> [email protected] schrieb am 2006-08-24:
>>
>>> http://d.puremagic.com/issues/show_bug.cgi?id=220
>>> This appears to have been sliently fixed - at least in works in DMD
>>> 0.165
>>> Windows.
>>> Probably should be in DStress, though, in case it reappears.
>>
>> Strange, I thougth bugzilla integrated messages posted in the news
>> group?
>>
>
> It used to do so. I reported this as issue 243. Not sure anyone
> responsible noticed though.
>
> http://d.puremagic.com/issues/show_bug.cgi?id=243
>
> /Oskar
It does, but only if the message comes from someone with a registered
email address. If the address doesn't exist, the msg isn't captured.
Later,
Brad
Comment #4 by thomas-dloop — 2006-08-25T00:06:17Z
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brad Roberts schrieb am 2006-08-24:
> Oskar Linde wrote:
>> Thomas Kuehne wrote:
>>> Strange, I thougth bugzilla integrated messages posted in the news
>>> group?
>>>
>>
>> It used to do so. I reported this as issue 243. Not sure anyone
>> responsible noticed though.
>>
>> http://d.puremagic.com/issues/show_bug.cgi?id=243
> It does, but only if the message comes from someone with a registered
> email address. If the address doesn't exist, the msg isn't captured.
Header extract from the message under investigation:
> Message-ID: <[email protected]>
> From: Thomas Kuehne <[email protected]>
> Newsgroups: digitalmars.D.bugs
> Subject: Re: [Issue 220] New: ICE with template and mangleof
> References: <[email protected]/issues/>
When I file a new bug report, buzilla uses the same address as above for
the "ReportedBy" field.
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFE7hxSLK5blCcjpWoRAjQ6AJ4q2EwOFLMGKhtNgdhWFHSXA04QgwCffcFv
/xddd+Ji6PeX8Vngz6LM9O8=
=s4K4
-----END PGP SIGNATURE-----