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]

[Bug libstdc++/14370] New: Problems with forward declaration of the vector class breaks boost


Gcc 3.4.0 does not compile the file boost/libs/lambda/test/switch_construct.cpp 
from the current boost repository, whereas gcc 3.3 accepts this file. I reduced 
the code to the appended test case. This problem is responsible for three 
failures in boost.  
 
source code t.C 
 
 namespace std { 
 template <class T, class Allocator> class vector; 
} 
 
#include <vector> 
 
using namespace std; 
 
 
int main()  
{ 
 
    vector<int> v; 
} 
 
g++ -v -save-temps -I../../.. t.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 20040228 (prerelease) 
 /usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -E -quiet -v -I../../.. 
-D_GNU_SOURCE t.C -mtune=pentiumpro -o t.ii 
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. 
 /usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -fpreprocessed t.ii 
-quiet -dumpbase t.C -mtune=pentiumpro -auxbase t -version -o t.s 
GNU C++ version 3.4.0 20040228 (prerelease) (i686-pc-linux-gnu) 
	compiled by GNU C version 3.4.0 20040228 (prerelease). 
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274 
t.C: In function `int main()': 
t.C:14: error: `vector' undeclared (first use this function) 
t.C:14: error: (Each undeclared identifier is reported only once for each 
function it appears in.) 
t.C:14: error: expected primary-expression before "int" 
t.C:14: error: expected `;' before "int"

-- 
           Summary: Problems with forward declaration of the vector class
                    breaks boost
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        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=14370


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