public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10211: Unrecognized template-id in pointer-to-member typedef
@ 2003-03-25 17:06 giovannibajo
  0 siblings, 0 replies; 2+ messages in thread
From: giovannibajo @ 2003-03-25 17:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10211
>Category:       c++
>Synopsis:       Unrecognized template-id in pointer-to-member typedef
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 25 16:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Giovanni Bajo
>Release:        gcc 3.2.2
>Organization:
>Environment:
mingw and cygwin, under Windows 2000 (x86)
>Description:
template <typename T>
struct Foo
{
    typedef Foo (Foo::*ptr)(void);
};

when compiled:

gccbug1.cpp:5: parse error before `*' token
>How-To-Repeat:
compile the above
>Fix:
template <typename T>
struct Foo
{
	typedef Foo t;
	typedef t (Foo::*ptr)(void);
};
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/10211: Unrecognized template-id in pointer-to-member typedef
@ 2003-03-25 17:12 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-03-25 17:12 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, giovannibajo, nobody

Synopsis: Unrecognized template-id in pointer-to-member typedef

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Mar 25 17:08:34 2003
State-Changed-Why:
    Confirmed with 2.95 ... 3.3, so no regression. Since this is
    fixed in 3.4, I close the report as "fixed".
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10211


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

end of thread, other threads:[~2003-03-25 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 17:06 c++/10211: Unrecognized template-id in pointer-to-member typedef giovannibajo
2003-03-25 17:12 bangerth

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