Linkage computation for non-objects/non-functions in C

Abramo Bagnara abramo.bagnara at bugseng.com
Tue Mar 24 10:50:51 PDT 2015


>From some checks I've done it seems that the linkage returned for
non-object/non-function declarations might be different from no linkage
also in C (in C++ this is perfectly fine)

This would be contrary to the all the C standards (*).

I'm missing something? There is a reason for such behavior?

(*) C11 6.2.2p6

The following identifiers have no linkage: an identifier declared to be
anything other than
an object or a function; an identifier declared to be a function
parameter; a block scope
identifier for an object declared without the storage-class specifier
extern.

-- 
Abramo Bagnara

BUGSENG srl - http://bugseng.com
mailto:abramo.bagnara at bugseng.com



More information about the cfe-commits mailing list