Issue 110 in gpick: error: reference to 'set' is ambiguous

3 views
Skip to first unread message

gp...@googlecode.com

unread,
Dec 18, 2013, 7:32:07 PM12/18/13
to gp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 110 by ryandesi...@gmail.com: error: reference to 'set' is
ambiguous
http://code.google.com/p/gpick/issues/detail?id=110

What steps will reproduce the problem?
1. scons && make

What is the expected output? What do you see instead?
Expected successful compile but got:

/usr/bin/clang++ -o build/source/dynv/DynvVarBool.o -c -Wall -O3 -DNDEBUG
-D_REENTRANT -DENABLE_NLS -I/opt/local/include/gtk-2.0
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0
-I/opt/local/include/gio-unix-2.0 -I/opt/local/include
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0
-I/opt/local/include/pixman-1 -I/opt/local/include/libpng16
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 source/dynv/DynvVarBool.cpp
source/dynv/DynvVarBool.cpp:72:15: error: reference to 'set' is ambiguous
handler->set=set;
^
source/dynv/DynvVarBool.cpp:39:12: note: candidate found by name lookup
is 'set'
static int set(struct dynvVariable* variable, void* value, bool deref){
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:35:28:
note:
candidate found by name lookup is 'std::__1::set'
class _LIBCPP_TYPE_VIS set;
^
1 error generated.

What version of the product are you using? On what operating system?
gpick 0.2.5, OS X 10.9 Mavericks, Xcode 5.0.2, Apple LLVM version 5.0
(clang-500.2.79) (based on LLVM 3.3svn)

Please provide any additional information below.
OS X 10.9 Mavericks for the first time on OS X uses libc++ instead of
libstdc++ as its C++ library. libc++ includes full C++11 support, but not
support for earlier non-standard C++11 experimental implementation like
libstdc++ did.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

gp...@googlecode.com

unread,
Dec 19, 2013, 3:51:00 PM12/19/13
to gp...@googlegroups.com
Updates:
Status: Started
Owner: thezbyg

Comment #1 on issue 110 by thezbyg: error: reference to 'set' is ambiguous
http://code.google.com/p/gpick/issues/detail?id=110

All ambiguous usage of "set" should be fixed in the attached patch. Please
try it.

Attachments:
set_ambiguity.patch 20.6 KB
Reply all
Reply to author
Forward
0 new messages