This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 10/10/2012 11:13 AM, Paolo Carlini wrote:Indeed.- 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.
+ 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);
Thus I tested the below.
+ error ("type transparent union %qT cannot be made transparent", t);
Let's say why not.
Thanks, Paolo.
Attachment:
patch_53761_2
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |