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]

Re: [C++ Patch] PR 53761


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]