www.digitalmars.com         C & C++   DMDScript  

D.gnu - bug: "unsigned"

reply KennyB <funisher gmail.com> writes:
I was converting C++ code and I just did this by accident:

class A
{
     this(bool lala = false, unsigned ubyte lala2)
     {

     }
}

it segfaults gdc. I'm on gentoo. I do not have the ability to test it on 
dmd, so I cannot compare if this is a bug that was fixed in dmd 113.

If someone can verify that this exists on dmd also, then post it to the 
bugs forum.
Feb 21 2005
next sibling parent John Reimer <brk_6502 yahoo.com> writes:
Confirmed on Linux:

dmd 0.113 segfaults on this code also.

- John R.

On Mon, 21 Feb 2005 03:46:28 -0700, KennyB wrote:

 I was converting C++ code and I just did this by accident:
 
 class A
 {
      this(bool lala = false, unsigned ubyte lala2)
      {
 
      }
 }
 
 it segfaults gdc. I'm on gentoo. I do not have the ability to test it on 
 dmd, so I cannot compare if this is a bug that was fixed in dmd 113.
 
 If someone can verify that this exists on dmd also, then post it to the 
 bugs forum.
Feb 21 2005
prev sibling next sibling parent reply John Reimer <brk_6502 yahoo.com> writes:
On Mon, 21 Feb 2005 03:46:28 -0700, KennyB wrote:

 I was converting C++ code and I just did this by accident:
 
 class A
 {
      this(bool lala = false, unsigned ubyte lala2)
      {
 
      }
 }
 
Interestingly, if you remove the default argument for "lala", the compiler emits errors instead of segfaulting.
Feb 21 2005
parent reply KennyB <funisher gmail.com> writes:
John Reimer wrote:
 On Mon, 21 Feb 2005 03:46:28 -0700, KennyB wrote:
 
 
I was converting C++ code and I just did this by accident:

class A
{
     this(bool lala = false, unsigned ubyte lala2)
     {

     }
}
Interestingly, if you remove the default argument for "lala", the compiler emits errors instead of segfaulting.
yeah I know, lol. If you take out anything, then it just gives an error. This is probably one of the most obscure bugs I've found in a while. D really needs a bugzilla :) -- I LOVE the one at bugs.gentoo.org.
Feb 21 2005
parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
KennyB wrote:

 D really needs a bugzilla :) -- I LOVE the one at bugs.gentoo.org.
Yeah, but it's not like it hasn't been suggested before... http://www.digitalmars.com/d/archives/19733.html http://www.digitalmars.com/d/archives/23880.html http://www.digitalmars.com/d/archives/28207.html Currently we just post to the newsgroups and scribble a few lines on the Wiki4D, and then just ignore it. Sad. --anders
Feb 21 2005
parent reply KennyB <funisher gmail.com> writes:
Anders F Björklund wrote:
 Yeah,
 but it's not like it hasn't been suggested before...
 
 http://www.digitalmars.com/d/archives/19733.html
 http://www.digitalmars.com/d/archives/23880.html
 http://www.digitalmars.com/d/archives/28207.html
 
 Currently we just post to the newsgroups and scribble
 a few lines on the Wiki4D, and then just ignore it.
 
 Sad.
 --anders
DOH! I was kinda being sarcastic ... If I was serious, I would have searched, but still... I read those posts, and I didn't see Walter respond to any, so it appears that he doesn't want/need bugzilla. Oh, well, I guess a bugs newsgroup is just as good. I would however much prefer a moderated forum though, so irrelevant posts (such as this one) can be moved. I know I'm really hijacking the topic here, but what if the D community setup a bugzilla, but the focus wasn't to post bugs, but to post patches? Perhaps if enough patches get posted, Walter will start merging them and it could save him some time searching for the bugs. I know I would be more than willing to start picking through the dmd source for bugs. Since I'm kinda new, I should probably shut up :) peace.
Feb 21 2005
next sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
KennyB wrote:

 DOH! I was kinda being sarcastic ... If I was serious, I would have 
 searched, but still... I read those posts, and I didn't see Walter 
 respond to any, so it appears that he doesn't want/need bugzilla.
Walter has stated earlier that he doesn't want a bug database (yet?)
 Oh, well, I guess a bugs newsgroup is just as good. I would however much 
 prefer a moderated forum though, so irrelevant posts (such as this one) 
 can be moved.
Actually, a lot of the bugs posted *do* find their ways into DMD...
 I know I'm really hijacking the topic here, but what if the D community 
 setup a bugzilla, but the focus wasn't to post bugs, but to post 
 patches? Perhaps if enough patches get posted, Walter will start merging 
 them and it could save him some time searching for the bugs. I know I 
 would be more than willing to start picking through the dmd source for 
 bugs.
This is how this digitalmars.D.bugs newsgroup works, with attachments.
 Since I'm kinda new, I should probably shut up :)
On the contrary, D needs all the help and suggestions it can get! But the currently the newsgroups holds all the ideas and discussions and code and whatnot, and Wiki4D summarizes them up into topics: http://www.prowiki.org/wiki4d/wiki.cgi?PendingPeeves http://www.prowiki.org/wiki4d/wiki.cgi?FeatureRequestList http://www.prowiki.org/wiki4d/wiki.cgi?BooleanNotEquBit http://www.prowiki.org/wiki4d/wiki.cgi?UnicodeIssues Somewhat crude "database/repository", but in works in the interim. --anders
Feb 21 2005
prev sibling parent Brad Anderson <brad dsource.dot.org> writes:
I imagine dsource.org will have a couple of Trac[1] projects for this 
purpose.  One for DMD and one for Phobos, in addition to all of the 
other projects found there.  You can open tickets and attach patches or 
have a discussion thread.  It's not Bugzilla yet, but Trac is showing 
promise.  If I could only get the developers to keep working on it 
instead of having to hack it around myself...

BA

[1] http://projects.edgewall.com/trac


KennyB wrote:
 Anders F Björklund wrote:
 
 Yeah,
 but it's not like it hasn't been suggested before...

 http://www.digitalmars.com/d/archives/19733.html
 http://www.digitalmars.com/d/archives/23880.html
 http://www.digitalmars.com/d/archives/28207.html

 Currently we just post to the newsgroups and scribble
 a few lines on the Wiki4D, and then just ignore it.

 Sad.
 --anders
DOH! I was kinda being sarcastic ... If I was serious, I would have searched, but still... I read those posts, and I didn't see Walter respond to any, so it appears that he doesn't want/need bugzilla. Oh, well, I guess a bugs newsgroup is just as good. I would however much prefer a moderated forum though, so irrelevant posts (such as this one) can be moved. I know I'm really hijacking the topic here, but what if the D community setup a bugzilla, but the focus wasn't to post bugs, but to post patches? Perhaps if enough patches get posted, Walter will start merging them and it could save him some time searching for the bugs. I know I would be more than willing to start picking through the dmd source for bugs. Since I'm kinda new, I should probably shut up :) peace.
Feb 21 2005
prev sibling parent Lars Ivar Igesund <larsivar igesund.net> writes:
KennyB wrote:
 I was converting C++ code and I just did this by accident:
 
 class A
 {
     this(bool lala = false, unsigned ubyte lala2)
     {
 
     }
 }
 
 it segfaults gdc. I'm on gentoo. I do not have the ability to test it on 
 dmd, so I cannot compare if this is a bug that was fixed in dmd 113.
 
 If someone can verify that this exists on dmd also, then post it to the 
 bugs forum.
It's obviously an dmd frontend bug, but it's also quite not D (and not even C++ AFAIK). I think the docs somewhere mention that only trailing parameters can have default values, which is quite logical. If everyone was aware of this, I'm sorry for being pedantic :) Lars Ivar Igesund
Feb 21 2005