public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Gabriel Dos Reis <gdr@codesourcery.com>
To: nathan@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: c++/1617: partial ordering of function templates
Date: Sun, 01 Apr 2001 00:00:00 -0000	[thread overview]
Message-ID: <20010111203601.2175.qmail@sourceware.cygnus.com> (raw)

The following reply was made to PR c++/1617; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@codesourcery.com>
To: nathan@codesourcery.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/1617: partial ordering of function templates
Date: 11 Jan 2001 21:27:06 +0100

 nathan@codesourcery.com writes:
 
 | >Number:         1617
 | >Category:       c++
 | >Synopsis:       partial ordering of function templates
 | >Confidential:   no
 | >Severity:       serious
 | >Priority:       high
 | >Responsible:    unassigned
 | >State:          open
 | >Class:          rejects-legal
 | >Submitter-Id:   net
 | >Arrival-Date:   Thu Jan 11 05:26:01 PST 2001
 | >Closed-Date:
 | >Last-Modified:
 | >Originator:     Nathan
 | >Release:        cvs 20010111
 | >Organization:
 | >Environment:
 | 
 | >Description:
 | current/deduce.ii:6: call of overloaded `Foo(int*&)' is ambiguous
 | current/deduce.ii:1: candidates are: void Foo(T*) [with T = int]
 | current/deduce.ii:2:                 void Foo(T&) [with T = int*]
 | 
 | but I think the first choice is more specialized than the second. 14.5.5.2
 | tells us to take each choice in turn, synthesize a unique type for each
 | template type parameter into the function's parameter list and then try
 | type deduction using the other choice. The transformed template is at least
 | as specialized as the other if deduction succeeds and the deduced parameter
 | types are an exact match. In this case that gives us, with a unique type
 | called 'X'
 
 As discussed, GCC should accep the code and select void F(T*).
 
 -- Gaby
 CodeSourcery, LLC                       http://www.codesourcery.com
>From nathan@gcc.gnu.org Sun Apr 01 00:00:00 2001
From: nathan@gcc.gnu.org
To: nathan@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: c++/601
Date: Sun, 01 Apr 2001 00:00:00 -0000
Message-id: <20010110150600.26857.qmail@sourceware.cygnus.com>
X-SW-Source: 2001-q1/msg00150.html
Content-length: 868

The following reply was made to PR c++/601; it has been noted by GNATS.

From: nathan@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, nathan@gcc.gnu.org, sefer@hotmail.com
Cc:  
Subject: Re: c++/601
Date: 10 Jan 2001 15:00:00 -0000

 Synopsis: Newest snapshopts generate ICE on overloading operators
 
 State-Changed-From-To: analyzed->closed
 State-Changed-By: nathan
 State-Changed-When: Wed Jan 10 07:00:00 2001
 State-Changed-Why:
     2000-11-08  Nathan Sidwell  <nathan@codesourcery.com>
     
             * decl.c (grok_op_properties): Always use coerce_new_type and
             coerce_delete_type.
             * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
             exception specification. Tidy up.
             (coerce_delete_type): Preserve exception specification. Tidy up.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=601&database=gcc
>From bryce@gcc.gnu.org Sun Apr 01 00:00:00 2001
From: bryce@gcc.gnu.org
To: apbianco@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: java/1261
Date: Sun, 01 Apr 2001 00:00:00 -0000
Message-id: <20010303031602.18732.qmail@sourceware.cygnus.com>
X-SW-Source: 2001-q1/msg01920.html
Content-length: 824

The following reply was made to PR java/1261; it has been noted by GNATS.

From: bryce@gcc.gnu.org
To: apbianco@gcc.gnu.org, bryce@albatross.co.nz, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: java/1261
Date: 3 Mar 2001 03:14:23 -0000

 Synopsis: "protected" field access not restricted between packages
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: bryce
 State-Changed-When: Fri Mar  2 19:14:23 2001
 State-Changed-Why:
     Confirmed fixed in gcc 3.0 branch:
     
     ]$ gcj -C pkg2/B.java 
     pkg2/B.java: In class `pkg2.B':
     pkg2/B.java: In method `(pkg1.A)':
     pkg2/B.java:7: Can't access protected field `pkg1.A.i' from `pkg2.B'.
                           int i = a.i;
                                    ^
     1 error
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1261&database=gcc


             reply	other threads:[~2001-04-01  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-01  0:00 Gabriel Dos Reis [this message]
2001-04-01  0:00 nathan
2001-04-01  0:00 Nathan Sidwell
2001-04-01  0:00 Martin Sebor

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=20010111203601.2175.qmail@sourceware.cygnus.com \
    --to=gdr@codesourcery.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nathan@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: 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).