[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] Build failure with version 2007-08-20

From: David Fang
Subject: Re: [Gnucap-devel] Build failure with version 2007-08-20
Date: Sat, 25 Aug 2007 18:51:31 -0400 (EDT)

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src  -DNDEBUG  -g -O2 -MT
mg_out_dev.o -MD -MP -MF ".deps/mg_out_dev.Tpo" -c -o mg_out_dev.o; \
then mv -f ".deps/mg_out_dev.Tpo" ".deps/mg_out_dev.Po"; else rm -f
".deps/mg_out_dev.Tpo"; exit 1; fi In function `std::string fix_expression(const
std::string&)': error: type specifier omitted for parameter `in'


I can reproduce this with all the g++-3.3 compilers I've tried, it seems to be an old parser bug that interprets

        CS x(CS_STRING(), in);

as a function declaration.

Try this patch (attached), which addresses the same problem in other files.

in "ap.h", if you use the "extern const" variant of the path, you'll probably want to define those _CS_* objects in some translation unit, if you don't want to assume that references to them will be optimized away.

BTW, src/ap.h and modelgen/ap.h are identical (same patch applied to both), and since modelgen builds with -I $(top_srcdir)/src, modelgen's copy can probably be removed to avoid confusion.

David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
        -- (2400 baud? Netscape 3.0?? lynx??? No problem!)

Attachment: gnucap-2007-08-20.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]