public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37518] New: preprocessor failure
@ 2008-09-14 6:04 rwgk at yahoo dot com
2008-09-14 6:56 ` Andrew Thomas Pinski
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: rwgk at yahoo dot com @ 2008-09-14 6:04 UTC (permalink / raw)
To: gcc-bugs
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 "("
/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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bug c++/37518] New: preprocessor failure
2008-09-14 6:04 [Bug c++/37518] New: preprocessor failure rwgk at yahoo dot com
@ 2008-09-14 6:56 ` Andrew Thomas Pinski
2008-09-14 6:57 ` [Bug c++/37518] " pinskia at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Thomas Pinski @ 2008-09-14 6:56 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/37518] preprocessor failure
2008-09-14 6:04 [Bug c++/37518] New: preprocessor failure rwgk at yahoo dot com
2008-09-14 6:56 ` Andrew Thomas Pinski
@ 2008-09-14 6:57 ` pinskia at gmail dot com
2008-09-14 7:25 ` rwgk at yahoo dot com
2008-09-14 8:09 ` schwab at suse dot de
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gmail dot com @ 2008-09-14 6:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gmail dot com 2008-09-14 06:56 -------
Subject: Re: 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
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37518
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/37518] preprocessor failure
2008-09-14 6:04 [Bug c++/37518] New: preprocessor failure rwgk at yahoo dot com
2008-09-14 6:56 ` Andrew Thomas Pinski
2008-09-14 6:57 ` [Bug c++/37518] " pinskia at gmail dot com
@ 2008-09-14 7:25 ` rwgk at yahoo dot com
2008-09-14 8:09 ` schwab at suse dot de
3 siblings, 0 replies; 5+ messages in thread
From: rwgk at yahoo dot com @ 2008-09-14 7:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rwgk at yahoo dot com 2008-09-14 07:24 -------
> What is on that line?
#elif BOOST_PP_ITERATION_DEPTH() == 1
If you don't have /usr/include/boost, you can get the entire boost
tree from here:
svn co https://svn.boost.org/svn/boost/trunk boost
Then simply compile with -Iboost.
> I think this is invalid code
This boost code is about four years old and compiles with many
compilers incl. any other gcc >= 3.2 (at least), many EDG versions,
and Visual C++ >= 6.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37518
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/37518] preprocessor failure
2008-09-14 6:04 [Bug c++/37518] New: preprocessor failure rwgk at yahoo dot com
` (2 preceding siblings ...)
2008-09-14 7:25 ` rwgk at yahoo dot com
@ 2008-09-14 8:09 ` schwab at suse dot de
3 siblings, 0 replies; 5+ messages in thread
From: schwab at suse dot de @ 2008-09-14 8:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from schwab at suse dot de 2008-09-14 08:08 -------
*** This bug has been marked as a duplicate of 36453 ***
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37518
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-14 8:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-14 6:04 [Bug c++/37518] New: preprocessor failure rwgk at yahoo dot com
2008-09-14 6:56 ` Andrew Thomas Pinski
2008-09-14 6:57 ` [Bug c++/37518] " pinskia at gmail dot com
2008-09-14 7:25 ` rwgk at yahoo dot com
2008-09-14 8:09 ` schwab at suse dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).