[LLVMbugs] [Bug 13695] New: ambiguous function call

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 25 00:04:38 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13695

             Bug #: 13695
           Summary: ambiguous function call
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: yusunn at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


try to compile GNU binutils-2.22 with clang , when compile the
gold cpmponent, clang report the following error,
/home/yushang/src/binutils-2.22/gold/script.cc:3352:3: error: call to
'yyerror' is ambiguous
  yyerror (closurev, _("GOLD does not currently support INCLUDE directives"));
  ^~~~~~~
/home/yushang/src/binutils-2.22/gold/script-c.h:226:1: note: candidate function
yyerror(void* closure, const char*);
^
/home/yushang/src/binutils-2.22/gold/script.cc:2607:1: note: candidate function
yyerror(void* closurev, const char* message)
^
if compile with gcc, it will be ok. Configured the binutils as follows:
~/src/binutils-2.22/configure \
CC=clang \
CXX=clang++ \
CFLAGS="-Wno-unused-value -Wno-string-plus-int -Wno-empty-body
-Wno-self-assign" \
CXXFLAGS="-Wno-mismatched-tags" \
--enable-gold=default \
--disable-nls \
--target=arm-linux

-- 
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