public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paolo Carlini <paolo.carlini@oracle.com>
To: Paolo Carlini <paolo.carlini@oracle.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	       Jason Merrill <jason@redhat.com>
Subject: Re: [C++ Patch] PR 50732
Date: Fri, 14 Oct 2011 18:56:00 -0000	[thread overview]
Message-ID: <4E987FDD.4060803@oracle.com> (raw)
In-Reply-To: <4E987E24.6000707@oracle.com>

On 10/14/2011 08:23 PM, Paolo Carlini wrote:
> Hi,
>
> submitter complains that, at variance with C++11, __is_base_of doesn't 
> handle an incomplete base type (the first parameter). The reason seems 
> simple: in finish_trait_expr we try to complete *both* types instead 
> of doing it where/when necessary.
Hmm, maybe we should be even more careful and call complete (type2) only 
when

NON_UNION_CLASS_TYPE_P (type1) && NON_UNION_CLASS_TYPE_P (type2) && 
!same_type_ignoring_top_level_qualifiers_p (type1, type2)

is true?

Paolo.

  reply	other threads:[~2011-10-14 18:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 18:48 Paolo Carlini
2011-10-14 18:56 ` Paolo Carlini [this message]
2011-10-14 19:12   ` Paolo Carlini
2011-10-14 19:41     ` Jason Merrill
2011-10-14 23:03       ` Paolo Carlini
2011-10-14 23:26         ` Jason Merrill
2011-10-15  1:17           ` Paolo Carlini
2011-10-15 20:42             ` Jason Merrill
2011-10-15 21:21               ` Paolo Carlini
2011-10-15 21:27                 ` Jason Merrill

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=4E987FDD.4060803@oracle.com \
    --to=paolo.carlini@oracle.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    /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).