'identifier1' : cannot be initialized using address of 'thread' variable 'identifier2'
The address of variable identifier2 is not static; rather, it is a dynamic value which can only be determined in the context of a particular thread. A static expression must be used to initialize identifier1.