public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8510: g++ fails when trying to compile a child class containing a vector or queue
@ 2002-11-09 2:55 paolo
0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-11-09 2:55 UTC (permalink / raw)
To: darkepaw, gcc-bugs, gcc-prs, nobody
Synopsis: g++ fails when trying to compile a child class containing a vector or queue
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Sat Nov 9 02:55:30 2002
State-Changed-Why:
Already fixed for 3.2.1 and 3.3. Now gives (3.2.1):
paolo:~> g++ -c 8510.cc
8510.cc:10: invalid use of template-name 'std::vector' in a declarator
8510.cc:10: syntax error before `;' token
(3.3):
paolo:~> g++ 8510.cc
8510.cc:10: error: invalid use of template-name 'std::vector' in a declarator
8510.cc:10: error: syntax error before `;' token
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8510
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/8510: g++ fails when trying to compile a child class containing a vector or queue
@ 2002-11-09 2:16 darkepaw
0 siblings, 0 replies; 2+ messages in thread
From: darkepaw @ 2002-11-09 2:16 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-09 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-09 2:55 c++/8510: g++ fails when trying to compile a child class containing a vector or queue paolo
-- strict thread matches above, loose matches on Subject: below --
2002-11-09 2:16 darkepaw
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).