https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78843

            Bug ID: 78843
           Summary: error: 'functionname' was not declared in this scope
           Product: gcc
           Version: 6.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jmichae3 at yahoo dot com
  Target Milestone: ---

End of search list.
COLLECT_GCC_OPTIONS='-O2' '-save-temps' '-v' '-static' '-s' '-std=c++14' '-o'
'32\find.exe' '-mtune=generic' '-march=i686'
 c:/program
files/mingw-w64/i686-6.2.0-win32-sjlj-rt_v5-rev1/mingw32/bin/../libexec/gcc/i686-w64-mingw32/6.2.0/cc1plus.exe
-fpreprocessed find.ii -quiet -dumpbase find.cpp -mtune=generic -march=i686
-auxbase find -O2 -std=c++14 -version -o find.s
GNU C++14 (i686-win32-sjlj-rev1, Built by MinGW-W64 project) version 6.2.0
(i686-w64-mingw32)
        compiled by GNU C version 6.2.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129741
GNU C++14 (i686-win32-sjlj-rev1, Built by MinGW-W64 project) version 6.2.0
(i686-w64-mingw32)
        compiled by GNU C version 6.2.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129741
Compiler executable checksum: ae018ebc3c12849135049d8ce622ca81


find.cpp: In function 'bool walkDirTree(std::__cxx11::string, VSDF&, int64_t,
bool)':
find.cpp:498:41: error: 'vsOSSortCompare' was not declared in this scope
     std::sort(dirs.begin(), dirs.end(), vsOSSortCompare);
                                         ^~~~~~~~~~~~~~~
find.cpp:499:54: error: 'vsOSUniqueCompare' was not declared in this scope
     VSI vsiDir=std::unique(dirs.begin(), dirs.end(), vsOSUniqueCompare);



funny thing is, both functions *are* declared before their use. I #included a
header file which has:
    bool VSOSUniqueCompare(std::string first, std::string second/*, bool
icase=false*/);

    bool VSOSSortCompare(std::string first, std::string second/*, bool
icase=false*/);

Reply via email to