This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20655] Attempt to use undefined structure tag triggers no diagnostic
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2005 16:15:04 -0000
- Subject: [Bug c/20655] Attempt to use undefined structure tag triggers no diagnostic
- References: <20050327153328.20655.jozef.behran@krs.sk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-27 16:15 -------
This is still valid code because the struct could be defined below still.
For an example:
struct a
{
struct b *c;
};
struct b
{
int i;
struct a *c;
};
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20655