
21 Jul
2004
21 Jul
'04
4:24 p.m.
Jonathan Wakely <cow@compsoc.man.ac.uk> writes:
On Wed, Jul 21, 2004 at 03:29:00PM +0100, Jonathan Wakely wrote:
primary question: is it allowed to instantiate vector with incomplete type? If yes, it's a bug in g++, otherwise, it's a bug in program options.
http://gcc.gnu.org/ml/gcc/2003-04/msg01516.html (and the reply)
It would seem to be undefined behaviour, although I can't consult 17.3.4.6[2] right now.
It's definitely undefined behavior. You're not allowed to instantiate any std templates with undefined types. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com