public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3661: Parse error in template function using nested class of template argument
@ 2001-07-12 13:49 aoliva
0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-07-12 13:49 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, peter.sumner, andrew.cliffe, wayne,
sibley, roy.norman
Synopsis: Parse error in template function using nested class of template argument
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Thu Jul 12 13:49:29 2001
State-Changed-Why:
You're missing the `typename' keyword before the template-dependent type name. Compilers that don't complain about the lack of this keyword are in error.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3661&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/3661: Parse error in template function using nested class of template argument
@ 2001-07-12 7:26 roy.norman
0 siblings, 0 replies; 2+ messages in thread
From: roy.norman @ 2001-07-12 7:26 UTC (permalink / raw)
To: gcc-gnats; +Cc: peter.sumner, andrew.cliffe, wayne, sibley
>Number: 3661
>Category: c++
>Synopsis: Parse error in template function using nested class of template argument
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Jul 12 07:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Roy Norman
>Release: 3.0 and 2.96
>Organization:
>Environment:
System: SunOS heatwave 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4
<machine, os, target, libraries (multiple lines)>
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../gcc-3.0/configure --prefix=/bambi/ajl/extras --enable-threads : (reconfigured) ../gcc-3.0/configure --prefix=/ba
mbi/ajl/extras --enable-threads --enable-libgcj : (reconfigured) ../gcc-3.0/configure --prefix=/bambi/ajl/extras --enable-threads --
enable-libgcj
Also:
Linux jericho 2.4.2-2smp #1 SMP Sun Apr 8 20:21:34 EDT 2001 i686 unknown
>Description:
Compile test.cpp below:
template<class T>
void foo()
{
T::A anInner;
}
gcc -c -Wall test.cpp
emits:
test.cpp: In function `void foo ()':
test.cpp:4: parse error before `;'
Is this code legal or is it a bug?
KAI 3.4f and MSVC 6.0 accept this code.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-12 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-12 13:49 c++/3661: Parse error in template function using nested class of template argument aoliva
-- strict thread matches above, loose matches on Subject: below --
2001-07-12 7:26 roy.norman
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).