facebook/hiphop-php — Issue #418: Call of overloaded ‘VarNR(HPHP::Sequence&)’ is ambiguous
Author: alecmocatta
Created: 2011-10-19 14:58:33+00:00
State: open

Trying to compile a project making use of the Zend framework, the compiler complains thusly:

```
/tmp/hphp/cpp/039.cpp: In member function \xe2\x80\x98HPHP::p_Zend_Service_Delicious HPHP::c_Zend_Service_Delicious::t_addbundle(HPHP::CVarRef, HPHP::Sequence)\xe2\x80\x99:
/tmp/hphp/cpp/039.cpp:777:77: error: call of overloaded \xe2\x80\x98VarNR(HPHP::Sequence&)\xe2\x80\x99 is ambiguous
/tmp/hphp/cpp/039.cpp:777:77: note: candidates are:
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1640:3: note: HPHP::VarNR::VarNR(HPHP::litstr)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1640:3: note: no known conversion for argument 1 from \xe2\x80\x98HPHP::Sequence {aka HPHP::Variant}\xe2\x80\x99 to \xe2\x80\x98HPHP::litstr {aka const char*}\xe2\x80\x99
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1620:3: note: HPHP::VarNR::VarNR(HPHP::ObjectData*)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1620:3: note: no known conversion for argument 1 from \xe2\x80\x98HPHP::Sequence {aka HPHP::Variant}\xe2\x80\x99 to \xe2\x80\x98HPHP::ObjectData*\xe2\x80\x99
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1619:3: note: HPHP::VarNR::VarNR(HPHP::ArrayData*)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1619:3: note: no known conversion for argument 1 from \xe2\x80\x98HPHP::Sequence {aka HPHP::Variant}\xe2\x80\x99 to \xe2\x80\x98HPHP::ArrayData*\xe2\x80\x99
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1618:3: note: HPHP::VarNR::VarNR(HPHP::StringData*)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1618:3: note: no known conversion for argument 1 from \xe2\x80\x98HPHP::Sequence {aka HPHP::Variant}\xe2\x80\x99 to \xe2\x80\x98HPHP::StringData*\xe2\x80\x99
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1617:3: note: HPHP::VarNR::VarNR(HPHP::CObjRef)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1616:3: note: HPHP::VarNR::VarNR(HPHP::CArrRef)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1615:3: note: HPHP::VarNR::VarNR(HPHP::CStrRef)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1606:3: note: HPHP::VarNR::VarNR(double)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1605:3: note: HPHP::VarNR::VarNR(long int)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1604:3: note: HPHP::VarNR::VarNR(HPHP::uint64)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1603:3: note: HPHP::VarNR::VarNR(HPHP::int64)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1602:3: note: HPHP::VarNR::VarNR(int)
/home/ubuntu/dev/hiphop-php/src/runtime/base/type_variant.h:1601:3: note: HPHP::VarNR::VarNR(bool)
make[2]: *** [CMakeFiles/program.dir/cpp/039.cpp.o] Error 1
make[1]: *** [CMakeFiles/program.dir/all] Error 2
make: *** [all] Error 2
```
Seems similar to #369