Microsoft has a language extension which allows union members to be references. What's more, they use this language extension in their ATL header files (which come as part of MFC and the Win32 SDK). Basically, they have code like this:
struct s {
union {
foo *fp;
foo &fr;
};
s( foo &f ) : fr( f ) {}
s( foo *f ) : fp( f ) {}
};
This patch enables support for union members to be references when
compiling with Microsoft extensions, and addresses PR13737.
~Aaron
union.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
