This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Namespace handling bug in GCC 3.1?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]