This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25278] g++ seems to ignore an overloaded function.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]