public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7165: Static template member functions causes parse error when accessed from template class
@ 2002-06-30 2:52 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-06-30 2:52 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, kv, nobody
Synopsis: Static template member functions causes parse error when accessed from template class
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sun Jun 30 02:44:18 2002
State-Changed-Why:
not a bug. you need to say
B() : t(TA::template g<T>())
{ }
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7165
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/7165: Static template member functions causes parse error when accessed from template class
@ 2002-06-29 11:56 kv
0 siblings, 0 replies; 2+ messages in thread
From: kv @ 2002-06-29 11:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 7165
>Category: c++
>Synopsis: Static template member functions causes parse error when accessed from template class
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 29 10:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Kristoffer Vinther
>Release: g++ (GCC) 3.1
>Organization:
>Environment:
RedHat Linux 7.3 on an Intel Mencindo
>Description:
Static template member functions causes parse error when accessed from template class.
>How-To-Repeat:
class A
{
public:
template<class T>
static T g()
{ return T(); }
};
template<class T, typename TA = A>
class B
{
public:
B() : t(TA::g<T>())
{ }
T t;
};
int main(int argc, char** argv)
{
int p = A::g<int>();
B<int> d;
}
>Fix:
Unknown!
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-30 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-30 2:52 c++/7165: Static template member functions causes parse error when accessed from template class nathan
-- strict thread matches above, loose matches on Subject: below --
2002-06-29 11:56 kv
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).