Namespace handling bug in GCC 3.1?

Robert Schiele rschiele@uni-mannheim.de
Wed Aug 7 10:39:00 GMT 2002


On Wed, Aug 07, 2002 at 06:55:09PM +0200, Lassi A. Tuura wrote:
> By my reading all of the below are legitimate C++.  Is this a
> bug in GCC 3.1 handling of using-declarations at function scope?
> 
> #include <utility>
> struct I { bool operator== (const I &) const; };
> void f () { using std::rel_ops::operator!=; I i; i != i; }

As the specs allow operator-function-id here, I think you are right.
You should file a bug report.

Robert

-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQEVAwUBPVFassQAnns5HcHpAQE4BQf9FN1ueRfJ32O5uFpCs3WqK6BqMeagzri3
Jvj8Gw7aB4Z5FPuuG7AG85QztEVfkAleJUyHy48Y3NLFJup+chgCiCVS9xtUhslx
/OTUagAULGVYBZ4dZGDu9Jzg02zEg3QwsyRfG5HZ6p3bq/VhYlPVDjsSqkJe3pMk
mCEVAvxnZkJuPbBvZC+SUPBLFNTW0KlZbbKE7Gi3+Lw8QqEr9N3gQZYwudvKQY1M
cjErsor2Ugz3FkCsVfK92MvjzH5+qwhztA7RTPi69yftJIUT+Fchg3p5SFCf94Pf
aWwx7C7iiTA6/LExfq5Q0Bd1+swCfRgLAfU7tUB6ww+cMEVGqU9wbQ==
=OStn
-----END PGP SIGNATURE-----


More information about the Gcc mailing list