If you have a flower pot ontop of a structure block south-west of a bed facing east, when you leave the bed after sleeping to skip day and you should be inside the structure block.
What I expected to happen:
Should be standing on the block next to the bed and the structure block (with flower pot).
What actually happened:
Standing inside the structure block and flower pot.
Notes:
Yes I know you can stand inside a structure block normally, but you shouldn't be able to stand inside a flower pot. Just pointing out that you can get inside a flower pot. No I have not tested it with other blocks ontop of the structure block and haven't tested it with other bed directions.
Related issues
Attachments
Comments

Does this happen with any other blocks? Or just scaffolding?

I've just tested it with other blocks.. It don't work with other blocks. Only if the bottom block is a scaffold and the top block is a block that doesn't take up the entire block space, ie. not a solid block.
As for the bottom block being a scaffold. It only works with a scaffold, since you can be inside that block.

Snapshot 19w12b
When the bed is against a wall, you wake up IN the wall. I first noticed this in village beds, but was able to recreate it when I put the bed in a corner.
@unknown, see MC-146360.

Please check if that's still an issue in the latest 1.14 development snapshot.

I can confirm that this bug is fixed since 19w13a! You can close this report.