public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15392] New: g++: ?parse-error on valid?
@ 2004-05-12 19:38 smelkov at mph1 dot phys dot spbu dot ru
2004-05-12 20:04 ` [Bug c++/15392] " giovannibajo at libero dot it
0 siblings, 1 reply; 2+ messages in thread
From: smelkov at mph1 dot phys dot spbu dot ru @ 2004-05-12 19:38 UTC (permalink / raw)
To: gcc-bugs
Not sure, but it seems to reject valid.
----------------------------
template<typename G>
class A {
public:
template<typename T>
void do_smth()
{}
template<typename T>
void xxx()
{
A::do_smth<T>();
}
};
void test()
{
A<int> a;
a.xxx<double>();
}
-----------------------
[kirr@tugrik tmp]$ g++ -Wall -c template.cpp
template.cpp: In member function `void A<G>::xxx()':
template.cpp:11: error: expected primary-expression before '>' token
template.cpp:11: error: expected primary-expression before ')' token
[kirr@tugrik tmp]$ g++ -v
Reading specs from
/usr/local/gcc-3.4.0-nocheck/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4.0-nocheck
--with-gnu-as --with-gnu-ld --enable-threads=posix --with-arch=i686
--with-tune=pentium4 --enable-__cxa_atexit --enable-languages=c,c++,f77
--disable-checking --disable-nls
Thread model: posix
gcc version 3.4.0
--
Summary: g++: ?parse-error on valid?
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: smelkov at mph1 dot phys dot spbu dot ru
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=15392
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/15392] g++: ?parse-error on valid?
2004-05-12 19:38 [Bug c++/15392] New: g++: ?parse-error on valid? smelkov at mph1 dot phys dot spbu dot ru
@ 2004-05-12 20:04 ` giovannibajo at libero dot it
0 siblings, 0 replies; 2+ messages in thread
From: giovannibajo at libero dot it @ 2004-05-12 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-05-12 08:09 -------
Invalid, A::do_smth is a dependent name and assumed to be a non-template by
default. See http://gcc.gnu.org/gcc-3.4/changes.html please.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15392
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-12 8:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 19:38 [Bug c++/15392] New: g++: ?parse-error on valid? smelkov at mph1 dot phys dot spbu dot ru
2004-05-12 20:04 ` [Bug c++/15392] " giovannibajo at libero dot it
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).