From 0aca1a4fd3d3f5fbfbbbfcc8e29a3f1cbb45d56a Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 31 Jan 2001 10:24:40 +0000 Subject: c-parse.in (structsp): Pedwarn when "enum foo" refers to an incomplete type. * c-parse.in (structsp): Pedwarn when "enum foo" refers to an incomplete type. (typename): Call pending_xref_error after parsing typed_typespecs. * c-decl.c (lookup_tag): Give error immediately rather than leaving it pending if the tag of the wrong type is in the same binding level. (xref_tag): Don't pedwarn for forward declarations of enum types here. * gcc.texi (Actual Bugs): Remove entry for misuse of struct, union and enum tags. testsuite: * gcc.dg/c99-tag-1.c: New test. From-SVN: r39372 --- gcc/gcc.texi | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gcc/gcc.texi') diff --git a/gcc/gcc.texi b/gcc/gcc.texi index 177c2ee..99f2433 100644 --- a/gcc/gcc.texi +++ b/gcc/gcc.texi @@ -537,10 +537,6 @@ edit the offending file and place the typedef in front of the prototypes. @item -There are several obscure case of mis-using struct, union, and -enum tags that are not detected as errors by the compiler. - -@item When @samp{-pedantic-errors} is specified, GCC will incorrectly give an error message when a function name is specified in an expression involving the comma operator. -- cgit v1.1