[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_grammar.y,1.62,1.63
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_grammar.y,1.62,1.63 |
Date: |
Mon, 11 Aug 2003 05:20:27 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/c
In directory subversions:/tmp/cvs-serv29360/cscc/c
Modified Files:
c_grammar.y
Log Message:
Declaration: display an extra error line if a "two or more types"
error might be a redeclaration of a typedef'ed name (bug #4701).
Index: c_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/c/c_grammar.y,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -r1.62 -r1.63
*** c_grammar.y 10 Aug 2003 00:38:59 -0000 1.62
--- c_grammar.y 11 Aug 2003 09:20:25 -0000 1.63
***************
*** 1602,1605 ****
--- 1602,1612 ----
}
+ /* Check for something that looks like a
multiple typedef */
+ if((($1).dupSpecifiers & C_SPEC_MULTIPLE_BASES)
!= 0 &&
+ (spec.specifiers & C_SPEC_TYPEDEF) != 0)
+ {
+ CCError(_("(may be a redeclaration of a
typedef'ed name)"));
+ }
+
/* Check for useless declarations */
if((!CTypeIsStruct(spec.baseType) &&
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/cscc/c c_grammar.y,1.62,1.63,
Rhys Weatherley <address@hidden> <=