This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR preprocessor/20077: GCC accepts macro definitions that fail a constraint
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Simon Martin <simartin at users dot sourceforge dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Oct 2006 18:28:30 +0000 (UTC)
- Subject: Re: [PATCH] Fix PR preprocessor/20077: GCC accepts macro definitions that fail a constraint
- References: <200610171923.49545.simartin@users.sourceforge.net>
On Tue, 17 Oct 2006, Simon Martin wrote:
> + const char *paste_op_error_msg =
> + "'##' cannot appear at either end of a macro expansion";
By moving this string here it will no longer be extracted for translation
like it would as an argument to cpp_error. You need to write
N_("'##' cannot appear at either end of a macro expansion")
instead so that it still gets extracted.
--
Joseph S. Myers
joseph@codesourcery.com