public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7077: nested typedef conversion operator
@ 2002-06-19 7:06 david.abrahams
0 siblings, 0 replies; only message in thread
From: david.abrahams @ 2002-06-19 7:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 7077
>Category: c++
>Synopsis: nested typedef conversion operator
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 19 06:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: david.abrahams@rcn.com
>Release: 3.1
>Organization:
>Environment:
cygwin
>Description:
The following should compile but doesn't.
>How-To-Repeat:
struct X;
template <class T>
struct Y
{
typedef void (X::*b)() const;
operator b() const;
};
struct X { void f() const {} };
template <class T>
Y<T>::operator typename Y<T>::b() const
{
return &X::f;
}
int main()
{
if (Y<int>())
return 0;
else
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-19 13:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-19 7:06 c++/7077: nested typedef conversion operator david.abrahams
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).