public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19709] New: name lookup broken?
@ 2005-01-30 13:08 debian-gcc at lists dot debian dot org
2005-01-30 14:15 ` [Bug c++/19709] " pinskia at gcc dot gnu dot org
2005-01-30 14:29 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2005-01-30 13:08 UTC (permalink / raw)
To: gcc-bugs
[forwarded from http://bugs.debian.org/294973]
the following code is accepted by g++-3.x, not by g++-4.0:
struct A {};
namespace Boo
{
struct B
{
friend struct A;
B(const A&) {};
};
}
int main()
{
A a;
Boo::B b(a);
return 0;
}
$ g++-4.0 bug-294973.cc
bug-294973.cc: In function 'int main()':
bug-294973.cc:16: error: no matching function for call to 'Boo::B::B(A&)'
bug-294973.cc:9: note: candidates are: Boo::B::B(const Boo::A&)
bug-294973.cc:6: note: Boo::B::B(const Boo::B&)
--
Summary: name lookup broken?
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19709
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/19709] name lookup broken?
2005-01-30 13:08 [Bug c++/19709] New: name lookup broken? debian-gcc at lists dot debian dot org
@ 2005-01-30 14:15 ` pinskia at gcc dot gnu dot org
2005-01-30 14:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-30 14:15 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Version|3.3.6 |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19709
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/19709] name lookup broken?
2005-01-30 13:08 [Bug c++/19709] New: name lookup broken? debian-gcc at lists dot debian dot org
2005-01-30 14:15 ` [Bug c++/19709] " pinskia at gcc dot gnu dot org
@ 2005-01-30 14:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-30 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-30 14:28 -------
*** This bug has been marked as a duplicate of 19403 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19709
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-30 14:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-30 13:08 [Bug c++/19709] New: name lookup broken? debian-gcc at lists dot debian dot org
2005-01-30 14:15 ` [Bug c++/19709] " pinskia at gcc dot gnu dot org
2005-01-30 14:29 ` pinskia 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).