http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770
--- Comment #38 from Mark Mitchell <mark at codesourcery dot com> 2010-12-12 00:03:22 UTC --- On 12/11/2010 4:00 PM, hjl.tools at gmail dot com wrote: > Really? Here is a testcase. Do you think goo's constructor > will be called before another constructor in another file > with priority 1005? Yes. (Or after, I don't remember if smaller numbers indicate higher priority. In either case, there is a deterministic order based on the priority number.) This is the point of the feature. If that were not the case, there would be no need to have .ctors.NNNN sections; everything would just go in .ctors.