public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: darkepaw@users.sf.net
To: gcc-gnats@gcc.gnu.org
Subject: c++/8510: g++ fails when trying to compile a child class containing a vector or queue
Date: Sat, 09 Nov 2002 02:16:00 -0000	[thread overview]
Message-ID: <20021109100855.37F0977B92@darkepaw.darkepaw.dyndns.org> (raw)


>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:


             reply	other threads:[~2002-11-09 10:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09  2:16 darkepaw [this message]
2002-11-09  2:55 paolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021109100855.37F0977B92@darkepaw.darkepaw.dyndns.org \
    --to=darkepaw@users.sf.net \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).