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

            Bug ID: 104737
           Summary: [12 regression] gdc.test/runnable_cxx/cppa.d FAILs on
                    Solaris
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

Since 20211130, the gdc.test/runnable_cxx/cppa.d test FAILs on Solaris:

+UNRESOLVED: gdc.test/runnable_cxx/cppa.d   compilation failed to produce
executable
+UNRESOLVED: gdc.test/runnable_cxx/cppa.d -g   compilation failed to produce
executable
+UNRESOLVED: gdc.test/runnable_cxx/cppa.d -g -shared-libphobos   compilation
failed to produce executable
+UNRESOLVED: gdc.test/runnable_cxx/cppa.d -shared-libphobos   compilation
failed to produce executable

unnable_cxx/extra-files/cppb.cpp:959:31: error: 'string' in namespace 'std'
does not name a type
runnable_cxx/extra-files/cppb.cpp:959:26: note: 'std::string' is defined in
header '<string>'; did you forget to '#include <string>'?
runnable_cxx/extra-files/cppb.cpp: In function 'void test18955()':
runnable_cxx/extra-files/cppb.cpp:963:10: error: 'string' is not a member of
'std'
runnable_cxx/extra-files/cppb.cpp:963:10: note: 'std::string' is defined in
header '<string>'; did you forget to '#include <string>'?
runnable_cxx/extra-files/cppb.cpp:966:19: error: 's' was not declared in this
scope

It seems the dmd migration/import lost the defined(__sun) (or rather
defined(__sun__) && defined(__svr4__)) in cppb.cpp to include <string> again.

Reply via email to