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: "adah at netstd dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2005 03:51:23 -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 adah at netstd dot com 2005-08-11 03:51 -------
Hi Gaby,
I have read Sutter's Modest Proposal on fixing ADL that you referred to me. If
you had told me earlier about this instead of bluntly telling me this was not a
GCC bug, I would have much more quickly given up the request to `fix' this
behaviour. (Hey, PLEASE do not argue with me on this: it is just an after
comment on facts.)
Since the future is undecided on how to make the program pass (I believe it
*is* the consensus of C++ gurus that the OP's program should compile, though it
is undefined and nonportable under the current C++ Standard), it is premature
to take measures to `correct' the current behaviour. However, the error
message *is* user unfriendly. I suppose no one objects to this. So my request
is still that the error message should be improved.
Yongwei
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910