Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[OWBugzilla] [Bug 1162] New: missing default constructor results in "cannot construct object from argument" during template instantiation

2 views
Skip to first unread message

bugzill...@www.openwatcom.org

unread,
Mar 30, 2015, 4:58:12 AM3/30/15
to openwatco...@openwatcom.org
http://bugzilla.openwatcom.org/show_bug.cgi?id=1162

Summary: missing default constructor results in "cannot construct
object from argument" during template instantiation
Product: Open Watcom C/C++ Compiler
Version: OW 1.9
Platform: Win32 hosted tools
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: major
Priority: --
Component: wpp386.exe
AssignedTo: openwatco...@openwatcom.org
ReportedBy: thomas.h...@s-t.de


the following code produces the error message:
vector(68): Error! E340: col(59) cannot construct object from argument(s)
vector(68): Note! N393: col(59) included from DefaultConstructor.cpp(6)
vector(68): Note! N633: col(59) template class instantiation for
std::vector<A,std::allocator<A>>' was in: Def ...

command line to compile this:

wpp386 /d2 /debug DefaultConstructor.cpp

*********** the code ***** DefaultConstructor.cpp ****************
#include <vector>
using namespace std;

class A
{
public:
A(int i1){ }
~A(){}
};

int main( int argc, char *argv[] )
{
vector<A> v;
return 0;
}


--
Configure bugmail: http://bugzilla.openwatcom.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
0 new messages