This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: messages
- From: Arthur Schwarz <aschwarz1309 at verizon dot net>
- To: Dave Korn <dave dot korn dot cygwin at googlemail dot com>, Joe Buck <Joe dot Buck at synopsys dot COM>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 13 Apr 2009 20:04:04 -0700 (PDT)
- Subject: 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