From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31074 invoked by alias); 28 Jan 2013 03:43:51 -0000 Received: (qmail 31021 invoked by uid 55); 28 Jan 2013 03:43:31 -0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/56086] when compiling C code with -std=gnu99 macro __STDC_UTF_16__ is defined Date: Mon, 28 Jan 2013 03:43: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-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-01/txt/msg02528.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56086 --- Comment #4 from joseph at codesourcery dot com 2013-01-28 03:43:31 UTC --- For C, char16_t and char32_t are typedefs in (a header provided by the C library, not by GCC), *not* built-in types, and __STDC_UTF_16__ is a built-in macro. For C++, char16_t and char32_t are built-in types that don't need a header to use them, and __STDC_UTF_16__ is defined in rather than built-in (I don't know if any change may have resulted from Jason raising the issue of the difference from C regarding that macro as per ).