[Bug c++/25278] g++ seems to ignore an overloaded function.
theodore dot papadopoulo at sophia dot inria dot fr
gcc-bugzilla@gcc.gnu.org
Tue Dec 6 18:51:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list