[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#619130: ERROR: compile in g++-4.5



On Mon, Mar 21, 2011 at 05:33:38PM +0300, Fokin Evgeny wrote:
> I make simple code for demonstration this compile error. Look attached
> files.

Can you please explain why this example is correct?

> compileError.hxx:11:62:   instantiated from here
> /usr/include/c++/4.5/bits/stl_pair.h:77:11: error: ‘std::pair<_T1,
> _T2>::second’ has incomplete type
> compileError.hxx:3:8: error: forward declaration of ‘struct structure’

This errors looks correct to me. Where is "struct structure" properly
declared _before_ the template definition?

Bastian



Reply to: