Commit e8ea7036 by Mark Mitchell Committed by Mark Mitchell

decl.c (grokdeclarator): Don't treat [] as indicating a zero-sized array in a typedef.

	* decl.c (grokdeclarator): Don't treat [] as indicating a
	zero-sized array in a typedef.

From-SVN: r27070
parent f0bcd168
1999-05-20 Mark Mitchell <mark@codesourcery.com> 1999-05-20 Mark Mitchell <mark@codesourcery.com>
* decl.c (grokdeclarator): Don't treat [] as indicating a
zero-sized array in a typedef.
* call.c (build_object_call): Don't look at DECL_NAME for a type. * call.c (build_object_call): Don't look at DECL_NAME for a type.
(pt.c): Or CP_TYPE_QUALS for an ERROR_MARK. (pt.c): Or CP_TYPE_QUALS for an ERROR_MARK.
(typeck.c): Or TYPE_MAIN_VARIANT for a type. (typeck.c): Or TYPE_MAIN_VARIANT for a type.
......
...@@ -10322,7 +10322,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) ...@@ -10322,7 +10322,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
continue; continue;
/* VC++ spells a zero-sized array with []. */ /* VC++ spells a zero-sized array with []. */
if (size == NULL_TREE && decl_context == FIELD && ! staticp) if (size == NULL_TREE && decl_context == FIELD && ! staticp
&& ! RIDBIT_SETP (RID_TYPEDEF, specbits))
size = integer_zero_node; size = integer_zero_node;
if (size) if (size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment