public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11314] New: unqualified lookup prefers functions to non-functions
@ 2003-06-24 21:02 sebor at roguewave dot com
2003-06-28 3:33 ` [Bug c++/11314] " bangerth at dealii dot org
2003-07-29 22:09 ` pinskia at physics dot uc dot edu
0 siblings, 2 replies; 3+ messages in thread
From: sebor at roguewave dot com @ 2003-06-24 21:02 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11314
Summary: unqualified lookup prefers functions to non-functions
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sebor at roguewave dot com
CC: gcc-bugs at gcc dot gnu dot org
The program below (example from 3.4.1, p3 corrected by DR139 --
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html#139) is supposed to
return 0. It exits with 1 when compiled with gcc 3.2 suggesting that gcc fails
to correctly implement unqualified lookup. This might be related to PR #11296:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11296
Martin
typedef int f;
namespace N {
struct A {
friend int f (A) { return 1; }
operator int () const { return 0; }
int g (A a) {
return f (a);
}
};
}
int main ()
{
return N::A ().g (N::A ());
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/11314] unqualified lookup prefers functions to non-functions
2003-06-24 21:02 [Bug c++/11314] New: unqualified lookup prefers functions to non-functions sebor at roguewave dot com
@ 2003-06-28 3:33 ` bangerth at dealii dot org
2003-07-29 22:09 ` pinskia at physics dot uc dot edu
1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2003-06-28 3:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11314
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-06-28 03:33:16
date| |
------- Additional Comments From bangerth at dealii dot org 2003-06-28 03:33 -------
Confirmed. What a wicked example :-/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/11314] unqualified lookup prefers functions to non-functions
2003-06-24 21:02 [Bug c++/11314] New: unqualified lookup prefers functions to non-functions sebor at roguewave dot com
2003-06-28 3:33 ` [Bug c++/11314] " bangerth at dealii dot org
@ 2003-07-29 22:09 ` pinskia at physics dot uc dot edu
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 22:09 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11314
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-29 22:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-24 21:02 [Bug c++/11314] New: unqualified lookup prefers functions to non-functions sebor at roguewave dot com
2003-06-28 3:33 ` [Bug c++/11314] " bangerth at dealii dot org
2003-07-29 22:09 ` pinskia at physics dot uc dot edu
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).