public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Template declaration inside function
@ 2005-06-21 16:39 Mattias Karlsson
  2005-06-21 16:44 ` Florian Weimer
  0 siblings, 1 reply; 3+ messages in thread
From: Mattias Karlsson @ 2005-06-21 16:39 UTC (permalink / raw)
  To: gcc


Given:

void f(void)
{
    template<typename T> class A
    {
    };
}

g++ 4.0/3.4 gives: 
bug.cpp:4: error: expected primary-expression before 'template'

Can a language lawer please confirm that this is even valid before I
create a PR?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-21 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-21 16:39 Template declaration inside function Mattias Karlsson
2005-06-21 16:44 ` Florian Weimer
2005-06-21 17:02   ` Mattias Karlsson

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).