From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14245 invoked by alias); 18 Jan 2014 23:47:04 -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 14221 invoked by uid 48); 18 Jan 2014 23:47:00 -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 23:47: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: see_also 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/msg02011.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59873 Wesley J. Landaker changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://llvm.org/bugs/show_b | |ug.cgi?id=18535 --- Comment #7 from Wesley J. Landaker --- (In reply to Andreas Schwab from comment #6) > \u0000 is only malformed outside of string and char literals, eg. in > identifiers. In that case, it sounds like my original issue of U'\u0000' == 1 is still the real bug. (Aside for those who care about clang): Based on Marc's comment and what I read in the linked source code, I reported an issue to clang (see the see also bug), believing that perhaps this was a bug in their compiler as well but I may have done so in error, if this is only a gcc issue as I originally believed.