summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2008-01-30 18:42:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-31 15:39:14 +0000
commit70aab261fe2e372e4c553e86fe28c568f5686804 (patch)
tree3c99ea5df078d044198da6434157e4587b9abebb /perl.h
parenta371bcf3a4271691f519def6bb3f44bce25441f5 (diff)
downloadperl-70aab261fe2e372e4c553e86fe28c568f5686804.tar.gz
don't forbid brace groups with g++ 4.2.2
From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093A17@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33152
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 8c5772fd6d..ba9549243d 100644
--- a/perl.h
+++ b/perl.h
@@ -448,8 +448,12 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
/* 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