This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: [Patch] Whole regex refactoring and current status
- From: "Kyrylo Tkachov" <kyrylo dot tkachov at arm dot com>
- To: "'Rainer Orth'" <ro at CeBiTec dot Uni-Bielefeld dot DE>, "Tim Shen" <timshen91 at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, "gcc-patches" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 8 Aug 2013 11:25:29 +0100
- Subject: RE: [Patch] Whole regex refactoring and current status
- References: <CAPrifDkAoudaXf=Rwu7jGiBa8nWf9HUx-TQUNGe5a0krJ7pUug at mail dot gmail dot com> <yddfvukpklg dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE>
> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches-
> owner@gcc.gnu.org] On Behalf Of Rainer Orth
> Sent: 08 August 2013 11:02
> To: Tim Shen
> Cc: libstdc++; gcc-patches
> Subject: Re: [Patch] Whole regex refactoring and current status
>
> Tim Shen <timshen91@gmail.com> writes:
>
> > As metioned in this[1] email, I here propose a refactored version of
> > regex, and show the status:
>
> This patch broke Solaris bootstrap:
>
> In file included from /usr/include/ctype.h:18:0,
> from /var/gcc/regression/trunk/10-gcc-gas/build/i386-pc-
> solaris2.10/libstdc++-v3/include/cctype:42,
> from /vol/gcc/src/hg/trunk/local/libstdc++-
> v3/include/precompiled/stdc++.h:35:
> /var/gcc/regression/trunk/10-gcc-gas/build/i386-pc-solaris2.10/libstdc++-
> v3/include/bits/regex.h:998:25: error: expected nested-name-specifier
> before numeric constant
> template<typename _B, typename _A, typename _C, typename _R>
> ^
>
> and several more instances. This happens because <iso/ctype_iso.h> (via
> <ctype.h>) has:
>
> #define _B 0x00000040 /* Blank */
> #define _C 0x00000020 /* Control character */
>
> This is already documented:
>
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/source_code_style.html#cod
> ing_style.bad_identifiers
We're also seeing the same error for ARM builds.
Kyrill