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]

Re: Bug in type in error message.


> Moreover, I feel this should compile anyway - but that is another story ;)

On that story: No, it shouldn't. For dummy<0>,dummy<0>, the call is
indeed ambiguous; neither is dummy<0>,dummy<n> more special that
dummy<n>,dummy<0>, nor vice versa.

Adding

  double ch(dummy<0>, dummy<0>)
  {
    return 1;
  }

to your program makes it compile.

Regards,
Martin

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