Pelles C forum

Pelles C => Bug reports => Topic started by: RichieL on February 28, 2018, 05:53:25 AM

Title: Procedure redeclaration crashes compiler
Post by: RichieL on February 28, 2018, 05:53:25 AM
The following short program:
Code: [Select]
typedef unsigned long u32;

u32 *a(u32 b, u32 c, u32 *d);

u32 *a(u32 b, u32 c, u32 (*e)(u32, u32),
                     u32 (*f)(u32),
                     u32 (*g)(u32, u32, int *, int *))
    return NULL;

causes a compiler access violation at 0x20746e69 on Pelles C V8.00.60 (Win64), after printing a (well-justified) error #2120 message about the redeclaration of 'a'.

Most attempts to further simplify this example cause the access violation to go away. Some seemingly trivial changes radically change the reported access violation address.

       Richie