This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2005 17:36:22 -0000
- Subject: [Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
- References: <20040610143911.15910.king.benjamin@mh-hannover.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-08-09 17:36 -------
Subject: Re: can't compile self defined void distance(std::vector<T>, std::vector<T>)
"adah at netstd dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| (In reply to comment #58)
| > It serves its users by providing a reliable translator for the language
| > defined by the standard. Think about the portability implications of
| > compilers that willy-nilly implement some parts of the standard but not
| > all, based on what they perceive as their users' best interest.
|
| Generally you are right. However, people that encounter this bug most
| probably know little (if any) of the C++ Standard (and thus care
| little about conformance to the Standard), and people know well
| about the Standard most probably won't encounter this bug at all.
If GCC should start ignoring standard semantics that Random
P. considers a problem for Lambda User, then we would not even have a
working compiler. And those who know could not even use the compiler.
There are several ways to fix the situation: change the standard
and/or educate people.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910