Prevents them from triggering warnings when compiling with `-Wpadded'.
gcc/d/ChangeLog:
* typeinfo.cc (make_internal_typeinfo): Set TYPE_ARTIFICIAL.
gcc/testsuite/ChangeLog:
* gdc.dg/Wpadded.d: New test.
(cherry picked from commit
57b2adae536a6399ed7d2c881b1bc0d4b88e936a)
/* Create the TypeInfo type. */
tree type = make_node (RECORD_TYPE);
+ TYPE_ARTIFICIAL (type) = 1;
finish_builtin_struct (type, ident->toChars (), fields, NULL_TREE);
tinfo_types[tk] = type;
--- /dev/null
+// { dg-do compile }
+// { dg-options "-Wpadded" }
+
+class EmptyClass { }