This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Namespace handling bug in GCC 3.1?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Robert Schiele <rschiele at uni-mannheim dot de>
- Cc: "Lassi A. Tuura" <lassi dot tuura at cern dot ch>, gcc at gcc dot gnu dot org
- Date: 07 Aug 2002 19:57:27 +0200
- Subject: Re: Namespace handling bug in GCC 3.1?
- Organization: CodeSourcery, LLC
- References: <3D5150ED.2D1F794D@cern.ch> <20020807173650.GA19253@schiele.local>
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