This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10618] Error message for function declarations with invalid return type could be improved
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Sep 2011 15:38:49 +0000
- Subject: [Bug c++/10618] Error message for function declarations with invalid return type could be improved
- Auto-submitted: auto-generated
- References: <bug-10618-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10618
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-21 15:38:49 UTC ---
(In reply to comment #9)
>
> The second diagnostic from G++ does not make sense. Clang gives the correct
> diagnostics in that case.
Ah, that's because you're using 4.5.2 -- stop it! ;)
If you use 4.6 the diagnostics are almost exactly the same as clang's, with and
without 'typename'
If you use 4.7 and instantiate the template the diagnostic is better than
clang's