public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13659] New: error: no matching function for call to
@ 2004-01-12 16:47 larsbj at gullik dot net
  2004-01-12 16:49 ` [Bug c++/13659] " larsbj at gullik dot net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: larsbj at gullik dot net @ 2004-01-12 16:47 UTC (permalink / raw)
  To: gcc-bugs

The following two testcases fail to compile on current CVS, with this error
mesage:

g++ -Wall -W -o swap swap.C
swap.C: In function `int main()':
swap.C:10: error: no matching function for call to `swap(size_t&, size_t&)'

g++ -Wall -W -o foo foo.C
foo.C: In function `int main()':
foo.C:18: error: no matching function for call to `f(int)'

Tests show that 'cvs up -D "3 days ago"' work, but that 'cvs up -D "36 hours
ago"' fail.

-- 
           Summary: error: no matching function for call to
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: larsbj at gullik dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
@ 2004-01-12 16:49 ` larsbj at gullik dot net
  2004-01-12 16:50 ` larsbj at gullik dot net
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: larsbj at gullik dot net @ 2004-01-12 16:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From larsbj at gullik dot net  2004-01-12 16:49 -------
Created an attachment (id=5463)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5463&action=view)
testcase 1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
  2004-01-12 16:49 ` [Bug c++/13659] " larsbj at gullik dot net
@ 2004-01-12 16:50 ` larsbj at gullik dot net
  2004-01-12 17:30 ` [Bug c++/13659] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: larsbj at gullik dot net @ 2004-01-12 16:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From larsbj at gullik dot net  2004-01-12 16:50 -------
Created an attachment (id=5464)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5464&action=view)
testcase 2


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] [3.4 Regression] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
  2004-01-12 16:49 ` [Bug c++/13659] " larsbj at gullik dot net
  2004-01-12 16:50 ` larsbj at gullik dot net
@ 2004-01-12 17:30 ` pinskia at gcc dot gnu dot org
  2004-01-12 17:39 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-12 17:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-12 17:30 -------
Confirmed, a regression that needs to be fixed before 3.4 get released.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-12 17:30:40
               date|                            |
            Summary|error: no matching function |[3.4 Regression] error: no
                   |for call to                 |matching function for call
                   |                            |to
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] [3.4 Regression] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
                   ` (2 preceding siblings ...)
  2004-01-12 17:30 ` [Bug c++/13659] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2004-01-12 17:39 ` pinskia at gcc dot gnu dot org
  2004-01-12 17:41 ` giovannibajo at libero dot it
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-12 17:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-12 17:39 -------
Related to bug 13658.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] [3.4 Regression] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
                   ` (3 preceding siblings ...)
  2004-01-12 17:39 ` pinskia at gcc dot gnu dot org
@ 2004-01-12 17:41 ` giovannibajo at libero dot it
  2004-01-15 14:45 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-12 17:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-01-12 17:41 -------
This testcase proposed by Alexandre Oliva:

--------------------------
namespace foo1 {
  template <class T> void f(T);
}
namespace foo2 {
  template <class T> void f(T, T);
}
namespace foo {
  using namespace foo1;
  using namespace foo2;
}

using foo::f;

int main() {
  f(1);
  f(1, 1);
}
--------------------------

shows the lookup regression without strong using.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] [3.4 Regression] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
                   ` (4 preceding siblings ...)
  2004-01-12 17:41 ` giovannibajo at libero dot it
@ 2004-01-15 14:45 ` cvs-commit at gcc dot gnu dot org
  2004-01-15 14:46 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-15 14:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-15 14:45 -------
Subject: Bug 13659

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	aoliva@gcc.gnu.org	2004-01-15 14:45:16

Modified files:
	gcc/cp         : ChangeLog name-lookup.c name-lookup.h parser.c 
	                 pt.c 

Log message:
	PR c++/13659
	* name-lookup.c (validate_nonmember_using_decl): Take scope and
	name by value, instead of computing them.
	(do_local_using_decl, do_toplevel_using_decl): Add scope and name
	arguments.  Pass them to validate_nonmember_using_decl.
	* name-lookup.h (do_local_using_decl): Adjust.
	(do_toplevel_using_decl): Likewise.
	* parser.c (cp_parser_using_declaration): Likewise.
	* pt.c (tsubst_expr): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3883&r2=1.3884
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.33&r2=1.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.h.diff?cvsroot=gcc&r1=1.13&r2=1.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.155&r2=1.156
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.814&r2=1.815



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] [3.4 Regression] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
                   ` (5 preceding siblings ...)
  2004-01-15 14:45 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-15 14:46 ` cvs-commit at gcc dot gnu dot org
  2004-01-15 17:46 ` aoliva at gcc dot gnu dot org
  2004-01-15 17:46 ` aoliva at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-15 14:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-15 14:46 -------
Subject: Bug 13659

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	aoliva@gcc.gnu.org	2004-01-15 14:46:02

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/lookup: strong-using-3.C using-10.C 

Log message:
	PR c++/13659
	* g++.dg/lookup/strong-using-3.C: New.
	* g++.dg/lookup/using-10.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3379&r2=1.3380
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/strong-using-3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/using-10.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] [3.4 Regression] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
                   ` (7 preceding siblings ...)
  2004-01-15 17:46 ` aoliva at gcc dot gnu dot org
@ 2004-01-15 17:46 ` aoliva at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2004-01-15 17:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aoliva at gcc dot gnu dot org  2004-01-15 17:46 -------
Fixed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/13659] [3.4 Regression] error: no matching function for call to
  2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
                   ` (6 preceding siblings ...)
  2004-01-15 14:46 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-15 17:46 ` aoliva at gcc dot gnu dot org
  2004-01-15 17:46 ` aoliva at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2004-01-15 17:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aoliva at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13659


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-01-15 17:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-12 16:47 [Bug c++/13659] New: error: no matching function for call to larsbj at gullik dot net
2004-01-12 16:49 ` [Bug c++/13659] " larsbj at gullik dot net
2004-01-12 16:50 ` larsbj at gullik dot net
2004-01-12 17:30 ` [Bug c++/13659] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-01-12 17:39 ` pinskia at gcc dot gnu dot org
2004-01-12 17:41 ` giovannibajo at libero dot it
2004-01-15 14:45 ` cvs-commit at gcc dot gnu dot org
2004-01-15 14:46 ` cvs-commit at gcc dot gnu dot org
2004-01-15 17:46 ` aoliva at gcc dot gnu dot org
2004-01-15 17:46 ` aoliva 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).