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: messages




--- On Mon, 4/13/09, Joe Buck <Joe.Buck@synopsys.COM> wrote:

 them all.
> 
> Consider
> 
> #include <iostream>
> struct Foo { int bar;};
> int main() {
> ? std::cerr << Foo();
> }
> 
> Try it, the result is ugly, and I often encounter this one

  (Personal opinion - not to be construed as wisdom).
  The issue with the result is:
  1: There is no end-of-line between candidates (or anywhere).
  2: The candidate template is a large, untamed, and unruly beast.
  3: The diagnostic message is not clear. I think it should say
     that the compiler can't find something because of something.
  4: Providing a full template for each candidate is (indeed)
     something of an overkill.

And so in substance I agree, in detail there are some mitigating things that can be done. 

art


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