[C++ PATCH] Fix main return type checking (PR c++/29735)

Mark Mitchell mark@codesourcery.com
Tue Nov 21 17:37:00 GMT 2006


Jakub Jelinek wrote:
> 
> 2006-11-21  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/29735
> 	* decl.c (grokfndecl): Check main's return type after applying
> 	attributes, not before.

Good analysis.

I'm concerned, though; mightn't attributes change parameter types as
well?  And, I see that we check for explicit specialization before
applying attributes; should we worry that we'll not match templates
correctly because the types haven't yet been attributified?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list