tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Possible bug in tcc


From: Robert Clausecker
Subject: [Tinycc-devel] Possible bug in tcc
Date: Tue, 01 Nov 2011 19:25:36 +0100

Hello all!

It seems that I discovered a bug in tcc. ANSI C allows declaration of
prototypes containing function pointers like this:

        void traverse(mystruct_t*, void(mycontent_t*));

tcc currently rejects this giving an error "')' expected". This
equivalent prototype works:

        void traverse(mystruct_t*,void(*)(mycontent_t*));

Is this a bug or a feature?

Robert Clausecker





reply via email to

[Prev in Thread] Current Thread [Next in Thread]