This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change'undeclared (first use in this function)
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Christian Jönsson <c dot christian dot joensson at telia dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 31 Dec 2002 12:42:18 +0100
- Subject: Re: Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change'undeclared (first use in this function)
- References: <20021231113202.GA1292@j-son.org>
This patchlet from DJE helps on linuxppc and darwin. Though I don't know
if correct.
Andreas
Index: parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.7
diff -c -p -r1.7 parser.c
*** parser.c 31 Dec 2002 00:11:47 -0000 1.7
--- parser.c 31 Dec 2002 02:10:44 -0000
*************** static void
*** 6459,6464 ****
--- 6459,6466 ----
cp_parser_declaration_seq_opt (parser)
cp_parser *parser;
{
+ extern int pending_lang_change;
+
while (true)
{
cp_token *token;