www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - assert bug

reply Derek Parnell <derek psych.ward> writes:
Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147

import std.stdio;
void main()
{
    assert( "\u00aa", "\u00aa\uff16");
}


-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
16/02/2006 11:54:44 AM
Feb 15 2006
parent reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derek Parnell schrieb am 2006-02-16:
 Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147

 import std.stdio;
 void main()
 {
     assert( "\u00aa", "\u00aa\uff16");
 }
I can't reproduce this with DMD-0.147 and Linux. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD9DmE3w+/yD4P9tIRApMmAJ9wYH6pMHKD3uoRQVvb4iPTvE7glQCeNvD7 IKcI/7ad+bPnL5s90ByCWLw= =5LKm -----END PGP SIGNATURE-----
Feb 16 2006
next sibling parent reply "Derek Parnell" <derek psych.ward> writes:
On Thu, 16 Feb 2006 22:59:28 +1100, Thomas Kuehne <thomas-dloop kuehne.cn>  
wrote:

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1

 Derek Parnell schrieb am 2006-02-16:
 Just a tiny insignificant bug. The (invalid) code below crashes DMD  
 0.147

 import std.stdio;
 void main()
 {
     assert( "\u00aa", "\u00aa\uff16");
 }
I can't reproduce this with DMD-0.147 and Linux.
I checked again on WinXP SP2 and it still crashes DMD. -- Derek Parnell Melbourne, Australia
Feb 16 2006
parent reply Deewiant <deewiant.doesnotlike.spam gmail.com> writes:
Derek Parnell wrote:
 On Thu, 16 Feb 2006 22:59:28 +1100, Thomas Kuehne
 <thomas-dloop kuehne.cn> wrote:
 
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1

 Derek Parnell schrieb am 2006-02-16:
 Just a tiny insignificant bug. The (invalid) code below crashes DMD
 0.147

 import std.stdio;
 void main()
 {
     assert( "\u00aa", "\u00aa\uff16");
 }
I can't reproduce this with DMD-0.147 and Linux.
I checked again on WinXP SP2 and it still crashes DMD. --Derek Parnell Melbourne, Australia
Confirmed with DMD 0.146 on Windows.
Feb 16 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Deewiant schrieb am 2006-02-16:
 Derek Parnell wrote:
 On Thu, 16 Feb 2006 22:59:28 +1100, Thomas Kuehne
 <thomas-dloop kuehne.cn> wrote:
 
 Derek Parnell schrieb am 2006-02-16:
 Just a tiny insignificant bug. The (invalid) code below crashes DMD
 0.147

 import std.stdio;
 void main()
 {
     assert( "\u00aa", "\u00aa\uff16");
 }
I can't reproduce this with DMD-0.147 and Linux.
I checked again on WinXP SP2 and it still crashes DMD. --Derek Parnell Melbourne, Australia
Confirmed with DMD 0.146 on Windows.
Fails to compile on Linux, but doesn't crash/segfault. Added to DStress as http://dstress.kuehne.cn/run/a/assert_13_A.d http://dstress.kuehne.cn/run/a/assert_13_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD9bGH3w+/yD4P9tIRAvHJAKClhAFuRsIzpZqmwkiMXkrkPPjFCQCfRTAC L/V8iDeQG+pRZ3L5IdPvFbo= =oMJ7 -----END PGP SIGNATURE-----
Feb 17 2006
prev sibling parent reply =?ISO-8859-1?Q?Jari-Matti_M=E4kel=E4?= <jmjmak utu.fi.invalid> writes:
Thomas Kuehne wrote:
 Derek Parnell schrieb am 2006-02-16:
 Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147

 import std.stdio;
 void main()
 {
     assert( "\u00aa", "\u00aa\uff16");
 }
I can't reproduce this with DMD-0.147 and Linux. Thomas
Tested with dmd 0.147 on linux: $ dmd -w testcase.d t21.d(4): found ',' when expecting ')' t21.d(4): found '"\u00aa"' when expecting ';' following 'statement' t21.d(4): found ')' instead of statement I'm I missing something?
Feb 16 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jari-Matti Mäkelä schrieb am 2006-02-16:
 Thomas Kuehne wrote:
 Derek Parnell schrieb am 2006-02-16:
 Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147

 import std.stdio;
 void main()
 {
     assert( "\u00aa", "\u00aa\uff16");
 }
I can't reproduce this with DMD-0.147 and Linux. Thomas
Tested with dmd 0.147 on linux: $ dmd -w testcase.d t21.d(4): found ',' when expecting ')' t21.d(4): found '"\u00aa"' when expecting ';' following 'statement' t21.d(4): found ')' instead of statement I'm I missing something?
The magic word in the orginal report was "crashes", it wasn't "failes to compile". Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD9asB3w+/yD4P9tIRAkoxAJwJpYJCj/bMhNvbPIdHyTtmBNqOgACcCJaT iHgfRs+UdC/Lu7MXtXZkmj8= =5oHv -----END PGP SIGNATURE-----
Feb 17 2006