simplified test structure
No compile error, SegFault occurs