[C++ Patch] PR 53761
Jason Merrill
jason@redhat.com
Wed Oct 24 17:20:00 GMT 2012
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
More information about the Gcc-patches
mailing list