www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 220] New: ICE with template and mangleof

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=220

           Summary: ICE with template and mangleof
           Product: D
           Version: 0.160
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P4
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


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);


-- 
Jun 23 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-06-23:
 http://d.puremagic.com/issues/show_bug.cgi?id=220
 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);
Added to DStress as http://dstress.kuehne.cn/compile/m/mangelof_16_A.d http://dstress.kuehne.cn/compile/m/mangelof_16_B.d http://dstress.kuehne.cn/compile/m/mangelof_16_C.d http://dstress.kuehne.cn/compile/m/mangelof_16_D.d http://dstress.kuehne.cn/compile/m/mangelof_16_E.d http://dstress.kuehne.cn/compile/m/mangelof_16_F.d http://dstress.kuehne.cn/compile/m/mangelof_16_G.d http://dstress.kuehne.cn/compile/m/mangelof_16_H.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEo7O23w+/yD4P9tIRAjdTAKCx27qp05lOFSHnGXO6bYNdonC8egCgkkn1 ckzfVdtkFU0u03wI6ojkaXE= =XT2l -----END PGP SIGNATURE-----
Jun 29 2006
prev sibling parent reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=220


clugdbug yahoo.com.au changed:

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





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.


-- 
Aug 24 2006
parent reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com 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? news:0nocn3-d58.ln1 birke.kuehne.cn http://lists.puremagic.com/pipermail/digitalmars-d-bugs/2006-June/001392.html Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE7coaLK5blCcjpWoRArfFAKCjAw6eAAbQhMXjhBmQQHWfapLwtgCaAowx Uw4vIC5eEMEXi4KDHk+wcP4= =k/4G -----END PGP SIGNATURE-----
Aug 24 2006
parent reply Oskar Linde <oskar.lindeREM OVEgmail.com> writes:
Thomas Kuehne wrote:
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 d-bugmail puremagic.com 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
Aug 24 2006
parent reply Brad Roberts <braddr puremagic.com> writes:
Oskar Linde wrote:
 Thomas Kuehne wrote:
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1

 d-bugmail puremagic.com 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
Aug 24 2006
next sibling parent reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----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: <0nocn3-d58.ln1 birke.kuehne.cn>
 From: Thomas Kuehne <thomas-dloop kuehne.cn>
 Newsgroups: digitalmars.D.bugs
 Subject: Re: [Issue 220] New: ICE with template and mangleof
 References: <bug-220-3 http.d.puremagic.com/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-----
Aug 24 2006
parent reply Brad Roberts <braddr puremagic.com> writes:
Thomas Kuehne wrote:
 -----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: <0nocn3-d58.ln1 birke.kuehne.cn>
 From: Thomas Kuehne <thomas-dloop kuehne.cn>
 Newsgroups: digitalmars.D.bugs
 Subject: Re: [Issue 220] New: ICE with template and mangleof
 References: <bug-220-3 http.d.puremagic.com/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-----
(subject changed to stop polluting bugzilla with this thread) It's definitely working. What am I missing? Later, Brad
Aug 24 2006
parent reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad Roberts schrieb am 2006-08-25:
 Thomas Kuehne wrote:
 Header extract from the message under investigation:
 
 Message-ID: <0nocn3-d58.ln1 birke.kuehne.cn>
 From: Thomas Kuehne <thomas-dloop kuehne.cn>
 Newsgroups: digitalmars.D.bugs
 Subject: Re: [Issue 220] New: ICE with template and mangleof
 References: <bug-220-3 http.d.puremagic.com/issues/>

 It's definitely working.  What am I missing?
I don't see the text of 0nocn3-d58.ln1 birke.kuehne.cn (see above) in bugzilla. A copy of the message was received by puremagic.com: http://lists.puremagic.com/pipermail/digitalmars-d-bugs/2006-June/001392.html Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE7rmfLK5blCcjpWoRAheiAJ9Tn1Wca5nxfKdT/QBuaKVBCGmeiACfZyvR TE1XiMzE4fRKyL3snuWdwko= =5qIH -----END PGP SIGNATURE-----
Aug 25 2006
parent reply Brad Roberts <braddr puremagic.com> writes:
Thomas Kuehne wrote:
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 Brad Roberts schrieb am 2006-08-25:
 Thomas Kuehne wrote:
 Header extract from the message under investigation:

 Message-ID: <0nocn3-d58.ln1 birke.kuehne.cn>
 From: Thomas Kuehne <thomas-dloop kuehne.cn>
 Newsgroups: digitalmars.D.bugs
 Subject: Re: [Issue 220] New: ICE with template and mangleof
 References: <bug-220-3 http.d.puremagic.com/issues/>

 It's definitely working.  What am I missing?
I don't see the text of 0nocn3-d58.ln1 birke.kuehne.cn (see above) in bugzilla. A copy of the message was received by puremagic.com: http://lists.puremagic.com/pipermail/digitalmars-d-bugs/2006-June/001392.html Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE7rmfLK5blCcjpWoRAheiAJ9Tn1Wca5nxfKdT/QBuaKVBCGmeiACfZyvR TE1XiMzE4fRKyL3snuWdwko= =5qIH -----END PGP SIGNATURE-----
Ok.. that'd be because that message came in while the regexp for matching subjects was still looking only at \[Bug \d+\] instead of \[(Bug|Issue) \d+\]. The regexp was fixed on July 12th and had been broken since approx June 11th. I did not attempt to re-capture messages from that span of time. Yours are arguably of high enough value to want to try to do that, or at least do that for the dstress additions. I'll add that to my todo list for this weekend. Later, Brad
Aug 25 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad Roberts schrieb am 2006-08-25:
 Ok.. that'd be because that message came in while the regexp for 
 matching subjects was still looking only at \[Bug \d+\] instead of 
 \[(Bug|Issue) \d+\].  The regexp was fixed on July 12th and had been 
 broken since approx June 11th.  I did not attempt to re-capture messages 
 from that span of time.  Yours are arguably of high enough value to want 
 to try to do that, or at least do that for the dstress additions.  I'll 
 add that to my todo list for this weekend.
Thanks, Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE8DnHLK5blCcjpWoRArPeAJ0btnJHfcEX7mwSVtCJj6mClZwe3wCaA5gi lpCV3+FvwnGa2H4hHFayesk= =VYwY -----END PGP SIGNATURE-----
Aug 26 2006
prev sibling parent reply Bruno Medeiros <brunodomedeiros+spam com.gmail> writes:
Brad Roberts wrote:
 Oskar Linde wrote:
 Thomas Kuehne wrote:
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1

 d-bugmail puremagic.com 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
Hum, I didn't know bugzilla did that. For reference, is it possible for one to use the same email address in a NG post, but prevent bugzilla from integrating the message? If so how? (I think it's good to have the ability to have "out-of-band" bug discussions) -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
Aug 25 2006
parent Oskar Linde <oskar.lindeREM OVEgmail.com> writes:
Bruno Medeiros wrote:
 Brad Roberts wrote:
 Oskar Linde wrote:
 Thomas Kuehne wrote:
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1

 d-bugmail puremagic.com 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
Hum, I didn't know bugzilla did that. For reference, is it possible for one to use the same email address in a NG post, but prevent bugzilla from integrating the message? If so how? (I think it's good to have the ability to have "out-of-band" bug discussions)
As Brad said, if you make sure the subject doesn't match the issue or bug regexp, it will not go into the bugzilla. /Oskar
Aug 25 2006