digitalmars.D.bugs - [Issue 2840] New: Missing line number for int %= complex
- d-bugmail puremagic.com (24/24) Apr 16 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2840
- d-bugmail puremagic.com (22/22) Jun 09 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2840
- d-bugmail puremagic.com (19/19) Jun 10 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2840
- d-bugmail puremagic.com (13/13) Jun 10 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2840
- d-bugmail puremagic.com (11/11) Jun 14 2010 http://d.puremagic.com/issues/show_bug.cgi?id=2840
- d-bugmail puremagic.com (6/6) Jun 14 2010 http://d.puremagic.com/issues/show_bug.cgi?id=2840
http://d.puremagic.com/issues/show_bug.cgi?id=2840 Summary: Missing line number for int %= complex Product: D Version: 1.042 Platform: PC OS/Version: Windows Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au void main(){ int x; x %= 2+2i; } fog.d(3): Error: cannot perform modulo complex arithmetic Error: long has no effect in expression (0) --- I don't know where the 'long' comes from. Both D1 and D2. This is one of the many op= bugs for erroneous complex --
Apr 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2840 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |patch AssignedTo|nobody puremagic.com |bugzilla digitalmars.com Root cause: ErrorExp() should not generate more error messages (ErrorExp never has a line number). PATCH: Solve it for all expression error messages. expression.c, line 948 void Expression::error(const char *format, ...) { + if (type==Type::terror) return; va_list ap; va_start(ap, format); ::verror(loc, format, ap); va_end( ap ); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 09 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2840 Frits van Bommel <fvbommel wxs.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|patch | CC| |fvbommel wxs.nl AssignedTo|bugzilla digitalmars.com |nobody puremagic.com OS/Version|Windows |All --- Don, you may want to look at mtype.c, line 224. "basic[Terror] = basic[Tint32]". That's right, Type::terror == Type::tint32. (This is why 'int' shows up in so many error messages) So your patch would disable errors for any expression that's legitimately of type int. In order to fix it this way, you'd need to also introduce a separate error type. (Which I'm sure many people would appreciate if done properly, by the way) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 10 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2840 Aargh! You're right. That's useless! That defeats the whole purpose of an error type. It also makes ErrorExp() completely erroneous, because it's just an integer expression without line number! (there's no Loc in the constructor). I think there's at least one other patch I've submitted which is invalid for the same reason. There definitely needs to be an error type. It would take a lot of familiarity with the code to be able to make one, though. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 10 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2840 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed DMD2.062. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 14 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2840 Fixed DMD1.062. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 14 2010