public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
[not found] <bug-23513-10484@http.gcc.gnu.org/bugzilla/>
@ 2005-10-05 9:15 ` cvs-commit at gcc dot gnu dot org
2005-10-05 11:07 ` nathan at gcc dot gnu dot org
2005-10-05 11:07 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-05 9:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from cvs-commit at gcc dot gnu dot org 2005-10-05 09:15 -------
Subject: Bug 23513
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: nathan@gcc.gnu.org 2005-10-05 09:15:47
Modified files:
gcc/cp : ChangeLog call.c pt.c
gcc/testsuite : ChangeLog
gcc/testsuite/g++.dg/template: spec22.C
Added files:
gcc/testsuite/g++.dg/template: spec26.C
Log message:
cp:
PR c++/23513
* call.c (joust): Adjust length count to more_specialized_fn.
* pt.c (more_specialized_fn): Cope with non-static member vs
non-member.
testsuite:
PR c++/23513
* g++.dg/template/spec22.C: Robustify test.
* g++.dg/template/spec26.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4911&r2=1.4912
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.553&r2=1.554
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.1040&r2=1.1041
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6138&r2=1.6139
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/spec26.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/spec22.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
[not found] <bug-23513-10484@http.gcc.gnu.org/bugzilla/>
2005-10-05 9:15 ` [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template cvs-commit at gcc dot gnu dot org
@ 2005-10-05 11:07 ` nathan at gcc dot gnu dot org
2005-10-05 11:07 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 10+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-10-05 11:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from nathan at gcc dot gnu dot org 2005-10-05 11:07 -------
fixed mainline and 4.0.3
2005-10-05 Nathan Sidwell <nathan@codesourcery.com>
PR c++/23513
* call.c (joust): Adjust length count to more_specialized_fn.
* pt.c (more_specialized_fn): Cope with non-static member vs
non-member.
--
nathan at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
[not found] <bug-23513-10484@http.gcc.gnu.org/bugzilla/>
2005-10-05 9:15 ` [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template cvs-commit at gcc dot gnu dot org
2005-10-05 11:07 ` nathan at gcc dot gnu dot org
@ 2005-10-05 11:07 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-05 11:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from cvs-commit at gcc dot gnu dot org 2005-10-05 11:07 -------
Subject: Bug 23513
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: nathan@gcc.gnu.org 2005-10-05 11:07:33
Modified files:
gcc/cp : ChangeLog call.c pt.c
gcc/testsuite : ChangeLog
gcc/testsuite/g++.dg/template: spec22.C
Added files:
gcc/testsuite/g++.dg/template: spec26.C
Log message:
cp:
PR c++/23513
* call.c (joust): Adjust length count to more_specialized_fn.
* pt.c (more_specialized_fn): Cope with non-static member vs
non-member.
testsuite:
PR c++/23513
* g++.dg/template/spec22.C: Robustify test.
* g++.dg/template/spec26.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.115&r2=1.4648.2.116
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.531.2.7&r2=1.531.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.978.2.27&r2=1.978.2.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.427&r2=1.5084.2.428
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/spec26.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/spec22.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1.10.1&r2=1.1.10.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
` (5 preceding siblings ...)
2005-09-16 13:37 ` nathan at gcc dot gnu dot org
@ 2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:21 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
` (4 preceding siblings ...)
2005-09-16 7:30 ` nathan at gcc dot gnu dot org
@ 2005-09-16 13:37 ` nathan at gcc dot gnu dot org
2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-09-16 13:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2005-09-16 13:37 -------
This is a piece of underspecification in the resolution of DR 214
(http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#214). That
basically tells one to compare pairs of arguments. But in this case we have a
member function and a non-member function -- how should we treat the this
pointer of the member function and the first arg of the non-member function?
As the algorithm did not give any indication as to how to order these, I made
them unordered.
Experimentation using the edg 3.6 frontend I find it to skip the first argument
of both functions (either an explicit arg or implicit this pointer) if either
function is a member function. The alternative, of comparing the this pointer
arg with the explicit arg of the other function requires treating the this
pointer argument as-if it were a reference to the object (otherwise it'll never
deduce in either direction as the explicit argument must be a by-value or
by-reference object). Experimentation shows the EDG front end does not take
that approach.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
` (3 preceding siblings ...)
2005-09-15 21:19 ` mmitchel at gcc dot gnu dot org
@ 2005-09-16 7:30 ` nathan at gcc dot gnu dot org
2005-09-16 13:37 ` nathan at gcc dot gnu dot org
2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-09-16 7:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2005-09-16 07:30 -------
I shall take a look
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-16 07:30:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
` (2 preceding siblings ...)
2005-08-27 21:51 ` mmitchel at gcc dot gnu dot org
@ 2005-09-15 21:19 ` mmitchel at gcc dot gnu dot org
2005-09-16 7:30 ` nathan at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-15 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-09-15 21:19 -------
Nathan, do you have any insights about this PR?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
2005-08-22 11:17 ` [Bug c++/23513] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-26 15:02 ` pinskia at gcc dot gnu dot org
@ 2005-08-27 21:51 ` mmitchel at gcc dot gnu dot org
2005-09-15 21:19 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-27 21:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-08-27 21:49 -------
Nathan --
This change comes from:
2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
PR c++/20723
* pt.c (more_specialized_fn): Member functions are unordered wrt
non-members. Conversion operators are unordered wrt other
functions.
I looked at DR124, but I didn't see anything to justify the "member functions
are unordered wrt non-mebers" claim. What am I missing?
-- Mark
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at codesourcery dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
2005-08-22 11:17 ` [Bug c++/23513] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-26 15:02 ` pinskia at gcc dot gnu dot org
2005-08-27 21:51 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-26 15:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-26 15:01 -------
It started to fail after 20041211.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
@ 2005-08-22 11:17 ` pinskia at gcc dot gnu dot org
2005-08-26 15:02 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-22 11:17 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Known to fail| |4.0.2 4.1.0
Known to work| |3.4.0
Summary|overload resolution fails to|[4.0/4.1 Regression]
|select a more specialized |overload resolution fails to
|template |select a more specialized
| |template
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23513
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-10-05 11:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23513-10484@http.gcc.gnu.org/bugzilla/>
2005-10-05 9:15 ` [Bug c++/23513] [4.0/4.1 Regression] overload resolution fails to select a more specialized template cvs-commit at gcc dot gnu dot org
2005-10-05 11:07 ` nathan at gcc dot gnu dot org
2005-10-05 11:07 ` cvs-commit at gcc dot gnu dot org
2005-08-22 9:48 [Bug c++/23513] New: " maxim dot yegorushkin at gmail dot com
2005-08-22 11:17 ` [Bug c++/23513] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-26 15:02 ` pinskia at gcc dot gnu dot org
2005-08-27 21:51 ` mmitchel at gcc dot gnu dot org
2005-09-15 21:19 ` mmitchel at gcc dot gnu dot org
2005-09-16 7:30 ` nathan at gcc dot gnu dot org
2005-09-16 13:37 ` nathan at gcc dot gnu dot org
2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
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).