[Bug c++/10618] Error message for function declarations with invalid return type could be improved
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 21 15:48:00 GMT 2011
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
More information about the Gcc-bugs
mailing list