This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix main return type checking (PR c++/29735)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 21 Nov 2006 09:34:13 -0800
- Subject: Re: [C++ PATCH] Fix main return type checking (PR c++/29735)
- References: <20061121172742.GM6570@devserv.devel.redhat.com>
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