This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trans-mem] Fix compilation of libitm with recent gcc
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Patrick Marlier <patrick dot marlier at unine dot ch>
- Cc: Richard Henderson <rth at redhat dot com>, "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Torvald Riegel <triegel at redhat dot com>
- Date: Wed, 14 Sep 2011 13:40:46 -0500
- Subject: Re: [trans-mem] Fix compilation of libitm with recent gcc
- References: <4E678FA3.4070800@unine.ch>
- Reply-to: aldyh at redhat dot com
Patrick Marlier <patrick.marlier@unine.ch> writes:
> Here the error when gcc compiles libitm:
>
> ../../../transactional-memory/libitm/aatree.h: In constructor
> âGTM::aa_node_base::aa_node_base(GTM::aa_node_base::level_type)â:
> ../../../transactional-memory/libitm/aatree.h:53:16: error:
> list-initializer for non-class type must not be parenthesized
> [-Werror]
>
> The fix just consists to remove the parenthesis.
I have run into the same problem while doing a merge from trunk. This
will be fixed (with your patch ;-)) once I commit in the next few days.
Oh yeah, expect many changes to the branch once I commit. We hadn't
done a merge in almost 1.5 years.
Thanks Patrick.