public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: david.abrahams@rcn.com To: gcc-gnats@gcc.gnu.org Subject: c++/7077: nested typedef conversion operator Date: Wed, 19 Jun 2002 07:06:00 -0000 [thread overview] Message-ID: <20020619131720.11865.qmail@sources.redhat.com> (raw) >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:
reply other threads:[~2002-06-19 13:26 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020619131720.11865.qmail@sources.redhat.com \ --to=david.abrahams@rcn.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).