public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12823] New: Cannot call member function template of nested class inside template class
@ 2003-10-29 13:32 bsamwel at xs4all dot nl
2003-10-29 14:44 ` [Bug c++/12823] " bangerth at dealii dot org
0 siblings, 1 reply; 2+ messages in thread
From: bsamwel at xs4all dot nl @ 2003-10-29 13:32 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12823
Summary: Cannot call member function template of nested class
inside template class
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bsamwel at xs4all dot nl
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
AFAICS the following code should compile.
template<int a>
struct foo
{
struct barney
{
template<int c>
void bar()
{
}
};
void baz()
{
barney b;
b.bar<0>(); // (This is line 15.)
}
};
Comeau's online compiler compiles this snippet just fine. GCC 3.3.2 gives me:
gcc test.cc
test.cc: In member function `void foo<a>::baz()':
test.cc:15: error: parse error before `;' token
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-29 14:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-29 13:32 [Bug c++/12823] New: Cannot call member function template of nested class inside template class bsamwel at xs4all dot nl
2003-10-29 14:44 ` [Bug c++/12823] " bangerth at dealii dot org
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).