This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/2682: gcc 2.95 does not compile struct
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2682: gcc 2.95 does not compile struct
- From: gelchinski at hotmail dot com
- Date: 29 Apr 2001 15:29:31 -0000
- Reply-To: gelchinski at hotmail dot com
>Number: 2682
>Category: c
>Synopsis: gcc 2.95 does not compile struct
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sun Apr 29 08:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Yafit Gelchinski
>Release: gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
hppa2.0-hp-hpux10.20
>Description:
The following messages appear:
test.c:10: parse error before `pattern'
test.c:10: warning: no semicolon at end of struct or union
even though struct declaration and definition both end with semicolons.
>How-To-Repeat:
struct pattern;
struct pattern
{
int ipattern_num;
int *order_index;
int *array_order;
int A;
int N;
pattern* next;
};
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.i"
IyAxICJ0ZXN0LmMiCnN0cnVjdCBwYXR0ZXJuOwoKc3RydWN0IHBhdHRlcm4KewogICBpbnQgICAg
ICBpcGF0dGVybl9udW07CiAgIGludCAgICAgICpvcmRlcl9pbmRleDsKICAgaW50ICAgICAgKmFy
cmF5X29yZGVyOwogICBpbnQgICAgICBBOwogICBpbnQgICAgICBOOwogICBwYXR0ZXJuKiBuZXh0
Owp9Owo=