[EMAIL PROTECTED] writes: > Sorry if my example code was incomplete.
Your sample is still non-compilable (you should strive to post complete compilable test cases), but easily fixed with 2 typedefs. The sample also compiles fine (gcc-3.4.6, 4.1.1) but with '-Wall' gives a warning: union.cc:21: warning: 'nString::<anonymous union>::strLen' will be initialized after union.cc:19: warning: 'ushort nString::<anonymous union>::<anonymous struct>::localStrLen' union.cc:28: warning: when initialized here Note that this is completely different from the warning in your original test case (at the start of this thread). To eliminate the warning, swap the order of initialization: inline nString::nString() : string(0), localStrLen(0), strLen(0) { } Since you shouldn't actually care about either 'strLen' or 'localStrLen' when string == 0, both of these initializations appear to be unneccessary. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus