This is the mail archive of the gcc@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: gcc 3.2.1 draft release notes, 3rd draft


On Tue, Oct 15, 2002 at 06:39:37PM -0700, Joe Buck wrote:
> Zack writes:
> 
> > It would be easy to insert in here
> > 
> >   advice ("Please use __typeof() instead");
> 
> OK with me, I wanted to do something to minimize re-reporting of this
> issue.

For now, how's this patch look?

zw

	* c-decl.c, cp/decl.c (start_decl):  Point users of old
	"initialized typedef" extension at __typeof.

===================================================================
Index: c-decl.c
--- c-decl.c	9 Oct 2002 21:27:35 -0000	1.351
+++ c-decl.c	18 Oct 2002 03:12:07 -0000
@@ -2821,7 +2821,7 @@ start_decl (declarator, declspecs, initi
     switch (TREE_CODE (decl))
       {
       case TYPE_DECL:
-	error ("typedef `%s' is initialized",
+	error ("typedef `%s' is initialized (use __typeof instead)",
 	       IDENTIFIER_POINTER (DECL_NAME (decl)));
 	initialized = 0;
 	break;
===================================================================
Index: cp/decl.c
--- cp/decl.c	15 Oct 2002 23:59:19 -0000	1.950
+++ cp/decl.c	18 Oct 2002 03:12:11 -0000
@@ -7292,7 +7292,7 @@ start_decl (declarator, declspecs, initi
     switch (TREE_CODE (decl))
       {
       case TYPE_DECL:
-	error ("typedef `%D' is initialized", decl);
+	error ("typedef `%D' is initialized (use __typeof instead)", decl);
 	initialized = 0;
 	break;
 


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