Change 33152 by [EMAIL PROTECTED] on 2008/01/31 15:39:14

        Subject: [PATCH] don't forbid brace groups with g++ 4.2.2
        From: "Robin Barker" <[EMAIL PROTECTED]>
        Date: Wed, 30 Jan 2008 18:42:25 -0000
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/perl.h#825 edit

Differences ...

==== //depot/perl/perl.h#825 (text) ====
Index: perl/perl.h
--- perl/perl.h#824~33085~      2008-01-28 02:17:53.000000000 -0800
+++ perl/perl.h 2008-01-31 07:39:14.000000000 -0800
@@ -448,8 +448,12 @@
 
 /* gcc (-ansi) -pedantic doesn't allow gcc statement expressions,
  * g++ allows them but seems to have problems with them
- * (insane errors ensue). */
-#if defined(PERL_GCC_PEDANTIC) || (defined(__GNUC__) && defined(__cplusplus))
+ * (insane errors ensue).
+ * g++ does not give insane errors now (RMB 2008-01-30, gcc 4.2.2).
+ */
+#if defined(PERL_GCC_PEDANTIC) || \
+    (defined(__GNUC__) && defined(__cplusplus) && \
+       ((__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 2))))
 #  ifndef PERL_GCC_BRACE_GROUPS_FORBIDDEN
 #    define PERL_GCC_BRACE_GROUPS_FORBIDDEN
 #  endif
End of Patch.

Reply via email to