Subject: [Boost-users] [Container] --begin() on empty deque crashes
From: TONGARI (tongari95_at_[hidden])
Date: 2013-01-19 07:06:51


Hi there,

The code below would simply crash on g++ 4.7.1/MinGW with default
optimization level, it doesn't shown with -O/1/2/3
----------------------------------------
boost::container::deque<int> d;
--d.begin();
----------------------------------------

I took a look into the impl, seems that it dereferences from (this->m_node
- 1) which is invalid at the time.
I guess it's the problem.

Thoughts?