[Top][All Lists]

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

Re: no operator << taking semantic_type* in ostream library

From: Akim Demaille
Subject: Re: no operator << taking semantic_type* in ostream library
Date: Wed, 30 Jul 2008 10:50:50 +0200

Le 29 juil. 08 à 17:49, Gaag, M van der - SPLXM a écrit :

Hello GNU/Bison team,


Compiling the xxx-parser.tab.cc under Unbreakable Linux (basically
RedHat with GCC 4.1.1) gives me the error operator<< not found in the
ostream library on statement debug_stream() << ( * yyvaluep ) as it has
no operator << on semantic_type*. This statement is executed when it
encounters an expression.

This means probably means that you have used %printer for
some type foo as follows:

        %printer { debug_stream() << $$ } <foo>;

but you did not include the file that defines this operator.
Something like

        %code {
        # include "foo.hh"

Does eliminating this statement harm the parser in any way or just the
debugging output?

Only debugging output.

As this is generated code, is it possible to fix it?

Do you have a %printer?

reply via email to

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