In reply to dave_59:
Thanks for the example Dave!
With simulator 1, I can reproduce your results. Simulator 2 warns about the usage of B::X in the display function within class A, expecting a class specialization of #(). Moreover, simulator 2 returns the output
I also checked the results using
In that case, simulator 1 returns
while simulator 2 returns
I cannot find a clear explanation in the LRM what the expected output should be in this case.