On 10/10/2012 11:13 AM, Paolo Carlini wrote:
- error ("type transparent class %qT does not have any fields", t); + if (TREE_CODE (t) == UNION_TYPE) + error ("type transparent union %qT does not have any fields", t); + else + error ("type transparent class %qT does not have any fields", t);
If you use %q#T you don't need to repeat the class-key.
+ error ("type transparent union %qT cannot be made transparent", t);
Let's say why not. Jason