]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
c-parse.in (structsp): Pedwarn when "enum foo" refers to an incomplete type.
authorJoseph Myers <jsm28@cam.ac.uk>
Wed, 31 Jan 2001 10:24:40 +0000 (10:24 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 31 Jan 2001 10:24:40 +0000 (10:24 +0000)
commit0aca1a4fd3d3f5fbfbbbfcc8e29a3f1cbb45d56a
tree34733a2dad346aaafe559de1ce988837b74efabf
parent92fa350add2e10d97b012085da56166db9ed4f0c
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/ChangeLog
gcc/c-decl.c
gcc/c-parse.in
gcc/gcc.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-tag-1.c [new file with mode: 0644]