Namespace handling bug in GCC 3.1?

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Aug 7 11:00:00 GMT 2002


Robert Schiele <rschiele@uni-mannheim.de> writes:

| [1  <text/plain; us-ascii (quoted-printable)>]
| 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.

This is a known bug, and there already is a report.  A premilinary
patch was even proposed sometime ago.

-- Gaby



More information about the Gcc mailing list