This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug c++/37518] New: preprocessor failure




Sent from my iPhone

On Sep 13, 2008, at 11:02 PM, "rwgk at yahoo dot com" <gcc-bugzilla@gcc.gnu.org > wrote:

Platform:
Fedora release 8 (Werewolf)
Linux chevy.lbl.gov 2.6.23.15-137.fc8 #1 SMP Sun Feb 10 17:03:13 EST 2008
x86_64 x86_64 x86_64 GNU/Linux



% g++ -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /net/chevy/raid1/rwgk/gcc_trunk/configure --prefix=/net/cci-filer1/vol1/tmp/rwgk/gcc_trunk_140355_fc8_x86_64 --enable-languages=c,c++,fortran Thread model: posix gcc version 4.4.0 20080914 (experimental) (GCC)


% cat boost_mpl_less.cpp #include <boost/mpl/less.hpp>


% g++ -c boost_mpl_less.cpp
In file included from /usr/include/boost/mpl/aux_/numeric_op.hpp:22,
from /usr/include/boost/mpl/aux_/comparison_op.hpp:27,
from /usr/include/boost/mpl/less.hpp:19,
from boost_mpl_less.cpp:1:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator
before token "("

What is on that line?


I think this is invalid code and there is already a dup of this too.


/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator
before token "("
In file included from /usr/include/boost/mpl/aux_/ numeric_cast_utils.hpp:18,
from /usr/include/boost/mpl/aux_/numeric_op.hpp:25,
from /usr/include/boost/mpl/aux_/comparison_op.hpp:27,
from /usr/include/boost/mpl/less.hpp:19,
from boost_mpl_less.cpp:1:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator
before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator
before token "("
In file included from /usr/include/boost/mpl/aux_/comparison_op.hpp: 27,
from /usr/include/boost/mpl/less.hpp:19,
from boost_mpl_less.cpp:1:
/usr/include/boost/mpl/aux_/numeric_op.hpp:290:31: error: missing binary
operator before token "("




Observations:

 g++ -E boost_mpl_less.cpp > /dev/null
 leads to the same error.

Many other mpl headers lead to a similar error.

Adding -fpermissive doesn't make a difference.

Using the boost svn trunk instead of the boost that comes with Fedora 8
leads to the same error.



-- Summary: preprocessor failure Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rwgk at yahoo dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37518




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]