This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/2682: gcc 2.95 does not compile struct



>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=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]