From: Gabriel Dos Reis <gdr@cs.tamu.edu>
To: Paolo Carlini <pcarlini@suse.de>
Cc: Jakub Jelinek <jakub@redhat.com>,
Mark Mitchell <mark@codesourcery.com>,
Jason Merrill <jason@redhat.com>,
gcc-patches@gcc.gnu.org
Subject: Re: [C++ diagnostic] Handle MEMBER_REF/DOTSTAR_EXPR in C++ dump_expr (PR c++/33844)
Date: Fri, 26 Oct 2007 19:02:00 -0000 [thread overview]
Message-ID: <877il99145.fsf@soliton.cs.tamu.edu> (raw)
In-Reply-To: <47221852.4070204@suse.de>
Paolo Carlini <pcarlini@suse.de> writes:
| Hi,
| > --- gcc/testsuite/g++.dg/other/ptrmem8.C.jj 2007-10-26 18:08:53.000000000 +0200
| > +++ gcc/testsuite/g++.dg/other/ptrmem8.C 2007-10-26 18:14:30.000000000 +0200
| > @@ -0,0 +1,16 @@
| > +// PR c++/33844
| > +// { dg-do compile }
| > +
| > +struct A {};
| > +
| > +template<int> void foo(void (A::* f)())
| > +{
| > + A a;
| > + &(a.*f); // { dg-error "invalid use of\[^\n\]*\\.\\*\[^\n\]*to form|qualified-id is required" }
| > +}
| > +
| > +template<int> void bar(void (A::* f)())
| > +{
| > + A *p;
| > + &(p->*f); // { dg-error "invalid use of\[^\n\]*->\\*\[^\n\]*to form|qualified-id is required" }
| > +}
| >
| In the output I'm seeing:
|
| foo::a.*foo::f'
|
| and
|
| foo::p->*foo::f
|
| are we really sure we want to qualify with foo:: like that?
No, one would need to set a `scope' cutoff.
-- Gaby
next prev parent reply other threads:[~2007-10-26 18:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 17:59 Jakub Jelinek
2007-10-26 18:22 ` Paolo Carlini
2007-10-26 19:02 ` Gabriel Dos Reis [this message]
2007-10-26 20:06 ` Jakub Jelinek
2007-10-26 20:37 ` Gabriel Dos Reis
2007-10-27 11:54 ` Jakub Jelinek
2007-10-27 12:00 ` Paolo Carlini
2007-10-27 13:52 ` Gabriel Dos Reis
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=877il99145.fsf@soliton.cs.tamu.edu \
--to=gdr@cs.tamu.edu \
--cc=gcc-patches@gcc.gnu.org \
--cc=jakub@redhat.com \
--cc=jason@redhat.com \
--cc=mark@codesourcery.com \
--cc=pcarlini@suse.de \
/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: link
Be 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).