[Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 26 11:44:00 GMT 2007
------- Comment #14 from jakub at gcc dot gnu dot org 2007-06-26 11:44 -------
Subject: Bug 28709
Author: jakub
Date: Tue Jun 26 11:43:50 2007
New Revision: 126021
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126021
Log:
PR preprocessor/28709
* macro.c (paste_tokens): Do error reporting here, use BUF with the
spelled LHS token as opposed to spelling it again.
(paste_all_tokens): Don't report errors here, just break on failure.
* gcc.dg/cpp/paste14.c: New test.
Added:
branches/redhat/gcc-4_1-branch/gcc/testsuite/gcc.dg/cpp/paste14.c
Modified:
branches/redhat/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/redhat/gcc-4_1-branch/libcpp/ChangeLog
branches/redhat/gcc-4_1-branch/libcpp/macro.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28709
More information about the Gcc-bugs
mailing list