This is the mail archive of the gcc-bugs@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]

[Bug c++/14123] New: odd number of parentheses in error message


There is an odd number of parentheses in g++ error message on the code below:

struct B { int b[10]; };
struct D : public B { int d; };

template<class T,int N> void f(int (T::*x1)[N], int T::*x2) {}

void ttt() 
{
  f(&D::b, &D::d);
}


The diagnostic I get with gcc-ss-3_4-20040211 looks like:

gccbug2.C: In function `void ttt()':
gccbug2.C:13: error: no matching function for call to `f(int B::*)[10], int D::*)'

The problem is present in 3.2 as well.

-- 
           Summary: odd number of parentheses in error message
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andr at triumf dot ca
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14123


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