From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22669 invoked by alias); 18 Jan 2014 22:05:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22638 invoked by uid 48); 18 Jan 2014 22:05:33 -0000 From: "wjl at icecavern dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59873] The value of char32_t U'\u0000' and char16_t u'\u000' is 1, instead of 0. Date: Sat, 18 Jan 2014 22:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: wjl at icecavern dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg02002.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59873 Wesley J. Landaker changed: What |Removed |Added ---------------------------------------------------------------------------- Version|4.8.3 |4.9.0 --- Comment #1 from Wesley J. Landaker --- I just tested this with gcc 4.9 in Debian experimental and the problem still exists there: $ g++-4.9 --version g++-4.9 (Debian 4.9-20140116-1) 4.9.0 20140116 (experimental) [trunk revision 206688] Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ g++-4.9 -Wall -Wextra -std=c++11 test.c++ $ ./a.out null (char32_t) = 1 null (uint32_t) = 1 soh (char32_t) = 1 soh (uint32_t) = 1 char32_t null == soh = 1 null (char16_t) = 1 null (uint16_t) = 1 soh (char16_t) = 1 soh (uint16_t) = 1 char16_t null == soh = 1