This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14645] New: Cannot compile subgraph.cpp from boost
- From: "schmid at snake dot iap dot physik dot tu-darmstadt dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2004 05:05:17 -0000
- Subject: [Bug c++/14645] New: Cannot compile subgraph.cpp from boost
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I cannot compile the file u.C, reduced from libs/graph/test/subgraph.cp, with
gcc 3.4. gcc 3.3 accepts it, though. When the second parameter is removed from
the call to put, the code is accepted by both compilers.
template <typename T>
class vector {};
template <class Graph, class Property>
struct property_map {
};
template <typename Graph>
struct graph_test
{
template <typename PropVal, typename PropertyTag>
void test_vertex_property_graph
(const vector<PropVal>& vertex_prop, PropertyTag tag, Graph& g)
{
typedef typename property_map<Graph, PropertyTag>::type PMap;
PMap pmap;
put(pmap, x);
// put(pmap);
}
};
gcc 3.4.0
g++ -v -W -Wall u.C
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc/configure --enable-threads=posix --enable-languages=c,c
++,f77,objc --enable-__cxa_atexit --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.0 20040313 (prerelease)
/usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v -D_GNU_SOURCE
u.C -quiet -dumpbase u.C -mtune=pentiumpro -auxbase u -W -Wall -version -o /
tmp/ccx3qwRi.s
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc/
i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
i686-pc-linux-gnu
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward
/usr/local/include
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include
/usr/include
End of search list.
GNU C++ version 3.4.0 20040313 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 3.4.0 20040313 (prerelease).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274
u.C: In member function `void
graph_test<Graph>::test_vertex_property_graph(const vector<PropVal>&,
PropertyTag, Graph&)':
u.C:17: error: `x' undeclared (first use this function)
u.C:17: error: (Each undeclared identifier is reported only once for each
function it appears in.)
gcc 3.3
/usr/bin/g++ -c -v -W -Wall u.C
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/
man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++
--with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit
i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/cc1plus -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D_GNU_SOURCE u.C -D__GNUG__=3
-quiet -dumpbase u.C -auxbase u -W -Wall -version -o /tmp/cc9zuFYD.s
GNU C++ version 3.3.1 (SuSE Linux) (i586-suse-linux)
compiled by GNU C version 3.3.1 (SuSE Linux).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++
/usr/include/g++/i586-suse-linux
/usr/include/g++/backward
/usr/local/include
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/include
/usr/i586-suse-linux/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/as -V
-Qy -o u.o /tmp/cc9zuFYD.s
GNU assembler version 2.14.90.0.5 (i586-suse-linux) using BFD version
2.14.90.0.5 20030722 (SuSE Linux)
--
Summary: Cannot compile subgraph.cpp from boost
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schmid at snake dot iap dot physik dot tu-darmstadt dot
de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14645