This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25278] g++ seems to ignore an overloaded function.
- From: "theodore dot papadopoulo at sophia dot inria dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2005 18:51:55 -0000
- Subject: [Bug c++/25278] g++ seems to ignore an overloaded function.
- References: <bug-25278-1884@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from theodore dot papadopoulo at sophia dot inria dot fr 2005-12-06 18:51 -------
(In reply to comment #2)
I may accept that g++ is right to reject this code. I cannot convince myself
from reading the standard but I'm not a langage lawyer. I think that this is a
major flaw in C++ but that's another topic...
g++ cannot be right. Again remove one value from the enumeration, and the
compiler accepts the code. Maybe it accepts invalid code but that would still
be a bug. Similarly, remove one namespace and the code is accepted.
If those two behaviour are mandated by the standard, I'll change C++ for
something else immediately. THESE ARE IN A WAY OR AN ANOTHER G++ BUGS !!!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25278