libstdc++/10579: showbase fails to include "0x" when value is 0 (whether using standard or deprecated headers)
paolo@gcc.gnu.org
paolo@gcc.gnu.org
Thu May 1 14:04:00 GMT 2003
Synopsis: showbase fails to include "0x" when value is 0 (whether using standard or deprecated headers)
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Thu May 1 14:04:33 2003
Responsible-Changed-Why:
Analyzed.
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Thu May 1 14:04:33 2003
State-Changed-Why:
As strange as it seems this is standard mandated behavior,
corrrectly implemented by 3.2.x and recent releases.
Indeed, according to 22.2.2.2.2,7 and 22.2.2.2.2,10 your
testcase is equivalent to:
#include <stdio.h>
int main()
{
printf("%#x\n%#x\n", 0, 1);
return 0;
}
Thanks for your report, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10579
More information about the Gcc-bugs
mailing list