[LLVMbugs] [Bug 7055] New: Constructor is not used for type conversion.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 5 09:14:48 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7055
Summary: Constructor is not used for type conversion.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: syntheticpp at gmx.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Next Loki bug:
./../include/loki/Functor.h:1619:16: error: functional-style cast from
'std::auto_ptr<Outgoing::Impl>' to 'Outgoing' (aka 'Functor<void, ParmList,
SingleThreaded>') is not allowed
return Outgoing(std::auto_ptr<typename Outgoing::Impl>(
^~~~~~~~~
In file included from Test.cpp:58:
./FunctorTest.h:60:44: note: in instantiation of function template
specialization 'Loki::BindFirst<Loki::Functor<void, Loki::Typelist<bool &,
Loki::NullType>, ::Loki::SingleThreaded> >' requested here
Functor<void,NullType> bindFunctor(BindFirst(function,testResult));
^
In file included from Test.cpp:55:
Comment:
But Functor has a constructor which takes a std::auto_ptr:
typedef FunctorImpl<R, TList, ThreadingModel> Impl;
...
Functor(std::auto_ptr<Impl> spImpl) : spImpl_(spImpl)
{}
If Alp isn't faster I try to make a reduced test case
Reproduce:
svn co https://loki-lib.svn.sourceforge.net/svnroot/loki-lib
cd trunk
export CXX=clang++
make
.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list