[LLVMbugs] [Bug 9860] New: Clang "no viable conversion" bug with operator overload

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 6 14:46:33 PDT 2011


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

           Summary: Clang "no viable conversion" bug with operator
                    overload
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: d235j.1 at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


When compiling the attached preprocessed source file, I get the following
error:


In file included from src/emu/emuopts.c:1:
src/emu/emuopts.c:459:31: error: no viable conversion from 'emu_file' to
'core_file' (aka '_core_file')
 bool result = parse_ini_file(file, priority, OPTION_PRIORITY_DRIVER_INI,
error);
                              ^~~~
src/emu/fileio.h:118:2: note: candidate function
 operator core_file &();
 ^
src/lib/util/options.h:163:33: note: passing argument to parameter 'inifile'
here
 bool parse_ini_file(core_file &inifile, int priority, int ignore_priority,
astring &error_string);
                                ^
1 error generated.


There could be a bug in the code, but I can't find it.

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