This is the mail archive of the gcc-prs@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]

c++/8510: g++ fails when trying to compile a child class containing a vector or queue


>Number:         8510
>Category:       c++
>Synopsis:       g++ fails when trying to compile a child class containing a vector or queue
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 09 02:16:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.2
>Organization:
>Environment:
System: Linux darkepaw.darkepaw.dyndns.org 2.4.19-gentoo-r9 #1 SMP Wed Oct 9 20:44:51 m i686 AMD Duron(tm) Processor AuthenticAMD GNU/Linux
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/include/g++-v32 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
>Description:
	g++ fails to compile the following code snippit giving the following message:

	> gcc -Wall -o test2 test2.cpp
	test2.cpp:11: `template<class _Tp, class _Alloc> class std::vector' as
    declarator
	Please submit a full bug report,
	with preprocessed source if appropriate.
	See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

	Code:

	// start code snippit
	#include <vector>

	class ODataSource
	{
	};

	class OBufferDataSource : public ODataSource
	{
		private:
			std::vector out;
	};
	// end code snippit
	
	It also fails with s/vector/deque/ too.
	Unfortunately I don't have access to any other gcc versions atm to test them with.
	
>How-To-Repeat:
	Compile the above code.
>Fix:
	No known work around.
>Release-Note:
>Audit-Trail:
>Unformatted:


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