[cfe-commits] r95512 - in /cfe/trunk: lib/CodeGen/CGDecl.cpp lib/CodeGen/CodeGenFunction.h test/CodeGenCXX/static-init.cpp

Anders Carlsson andersca at mac.com
Sun Feb 7 11:11:34 PST 2010


6 feb 2010 kl. 19.01 skrev Eli Friedman:
> 
> Do you need to check the linkage of the containing function?  A static
> variable inside a function in an anonymous namespace, for example,
> shouldn't have weak linkage.

Hmm, yeah - maybe it's just simpler to check if the containing function has weak linkage?

Anders




More information about the cfe-commits mailing list