[pcre-dev] [Bug 1039] New: using std::make_pair triggers int…

Kezdőlap
Üzenet törlése
Szerző: Thorsten Schöning
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1039] New: using std::make_pair triggers internal compiler error F1004 in BCB 6 in pcre_stringpiece_unittest.cc
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1039
           Summary: using std::make_pair triggers internal compiler error
                    F1004 in BCB 6 in pcre_stringpiece_unittest.cc
           Product: PCRE
           Version: 8.10
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: tschoening@???
                CC: pcre-dev@???



Created an attachment (id=412)
--> (http://bugs.exim.org/attachment.cgi?id=412)
redefine make_pair to std::make_pair in BCB 6

Hello,

I don't know why, again ;-), but in BCB 6 I had to change using std::make_pair
in the file pcre_stringpiece_unittest.cc to redefine make_pair to
std::make_pair or I get an internal compiler error F1004. Borland didn't tell
what this error means, but it occured on two installations. In BCB 5 everything
works finde.

Index: pcre_stringpiece_unittest.cpp
===================================================================
--- pcre_stringpiece_unittest.cpp       (Revision 1701)
+++ pcre_stringpiece_unittest.cpp       (Arbeitskopie)
@@ -25,9 +25,15 @@
 } while (0)


using std::map;
-using std::make_pair;
using pcrecpp::StringPiece;

+// using std::make_pair triggers internal compiler error F1004 in BCB 6.
+#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x0560)
+#define make_pair(a, b) std::make_pair(a, b)
+#else
+using std::make_pair;
+#endif
+
static void CheckSTLComparator() {
string s1("foo");
string s2("bar");
@@ -149,3 +155,5 @@
printf("OK\n");
return 0;
}
+
+


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email