public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51667] [4.7 Regression] new FAIL: 27_io/basic_*stream/* execution test with -m32 Date: Sat, 24 Dec 2011 09:10:00 -0000 [thread overview] Message-ID: <bug-51667-4-eaYpa1sLfL@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51667-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51667 --- Comment #3 from Uros Bizjak <ubizjak at gmail dot com> 2011-12-24 08:00:38 UTC --- Following testcase shows the problem in libstdc++: --cut here-- #include <iostream> #include <sstream> #include <cassert> void test01() { using namespace std; stringstream ostr1; ostr1.setf(ios_base::oct); ostr1.setf(ios_base::hex); short s = -1; ostr1 << s; cout << "result: " << ostr1.str() << endl; assert( ostr1.str() == "-1" ); } int main() { test01(); return 0; } --cut here-- [uros@localhost test]$ ./a.out result: 65535 a.out: 7.cc:19: void test01(): Assertion `ostr1.str() == "-1"' failed. Aborted Sign-extension from short is missing somewhere.
next prev parent reply other threads:[~2011-12-24 8:01 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-12-23 16:48 [Bug libstdc++/51667] New: " dominiq at lps dot ens.fr 2011-12-23 17:12 ` [Bug libstdc++/51667] " dominiq at lps dot ens.fr 2011-12-23 18:15 ` ubizjak at gmail dot com 2011-12-24 9:10 ` ubizjak at gmail dot com [this message] 2011-12-24 10:46 ` paolo.carlini at oracle dot com 2011-12-24 10:51 ` [Bug tree-optimization/51667] " paolo.carlini at oracle dot com 2011-12-24 11:15 ` ebotcazou at gcc dot gnu.org 2011-12-24 12:23 ` ubizjak at gmail dot com 2011-12-24 12:40 ` ubizjak at gmail dot com 2011-12-24 12:47 ` [Bug rtl-optimization/51667] " ubizjak at gmail dot com 2011-12-24 12:58 ` ubizjak at gmail dot com 2011-12-24 13:49 ` ubizjak at gmail dot com 2011-12-24 13:52 ` ubizjak at gmail dot com 2011-12-24 14:12 ` ubizjak at gmail dot com 2011-12-24 18:23 ` ebotcazou at gcc dot gnu.org 2011-12-27 1:37 ` ebotcazou at gcc dot gnu.org 2011-12-27 12:13 ` dominiq at lps dot ens.fr 2011-12-27 16:29 ` ebotcazou at gcc dot gnu.org 2011-12-27 18:01 ` ebotcazou at gcc dot gnu.org 2011-12-28 9:14 ` ubizjak at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-51667-4-eaYpa1sLfL@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).