1 In file included from stack_allocated.cpp:5:
2 ./stack_allocated.h:14:1: warning: [blink-gc] Class 'PartObject' requires a trace method.
5 ./stack_allocated.h:17:5: note: [blink-gc] Untraced field 'm_obj' declared here:
6 Member<HeapObject> m_obj; // Needs tracing.
8 ./stack_allocated.h:26:28: warning: [blink-gc] Stack-allocated class 'AnotherStackObject' derives class 'PartObject' which is not stack allocated.
9 class AnotherStackObject : public PartObject { // Invalid base.
11 ./stack_allocated.h:32:1: warning: [blink-gc] Class 'HeapObject' contains invalid fields.
12 class HeapObject : public GarbageCollected<HeapObject> {
14 ./stack_allocated.h:36:5: note: [blink-gc] Stack-allocated field 'm_part' declared here:
15 StackObject m_part; // Cannot embed a stack allocated object.
17 stack_allocated.cpp:12:1: warning: [blink-gc] Class 'AnonStackObject' contains invalid fields.
18 class AnonStackObject : public StackObject {
20 stack_allocated.cpp:14:5: note: [blink-gc] Raw pointer field 'm_obj' to a GC managed class declared here: