This is the mail archive of the gcc-patches@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: [C++ PATCH] Fix main return type checking (PR c++/29735)


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


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