This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
init_priority across different namespaces
- From: Sergey Kljopov <hlodvig at unipro dot ru>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 07 May 2013 01:30:19 +0300
- Subject: init_priority across different namespaces
Hi,
Is init_priority affects initialization order across different namespaces?
Means in the code (the same file)
namespace x_sp { Foo a_x __attribute__ ((init_priority (2000))); }
namespace y_sp { Foo a_y __attribute__ ((init_priority (1000))); }
which object will be initialized first?
Sergey Kljopov