In parallel mode automatic conversion from string literal to std::string
doesn't work when passing literal as parameter to std::find.

Woring compiler parameters:
g++ test.cpp -o test

Failing compiler line:
g++ -D_GLIBCXX_PARALLEL -fopenmp -lgomp test.cpp -o test


Simple work around is making explicit temporary std::string object.


-- 
           Summary: parallel mode doesn't support implicit string conversion
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: suokkos at gmail dot com
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39546

Reply via email to