Cyril Plisko <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I just stepped on some strange piece of code in subj:
>
> ...
> 73 extern int nexectype;      /* number of elements in execsw */
> 74 extern struct execsw execsw[];
> 75 extern kmutex_t execsw_lock;
> ...
> 159 struct execsw {
> 160   char    *exec_magic;
> 161   int     exec_magoff;
> 162   int     exec_maglen;
...

> Compiler chokes on line 74 - execsw[] defined with type specified
> _later_ in the file. I was always sure that one must define the type
> _before_ declaring variable of that type. So what is the story here ?

Looks like a bug in the compiler.

It works with e.g. gcc-2.95.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]        (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code

Reply via email to