This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH to change default dialect to C++14


On 07/01/2015 11:26 AM, Jason Merrill wrote:
> I've been threatening to do this for a couple of months, and now that
> the regressions are under control I think it's time.  This patch changes
> the default C++ dialect to C++14.
> 
> Tested x86_64-pc-linux-gnu, applying to trunk.

This causes a build failure on Ubuntu 14.04 LTS (Trusty) for x86_64 and
armhf and probably others.  All of the graphite*.c files fail with
/home/wilson/FOSS/GCC/X-palantir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstddef:51:11:
error: â::max_align_tâ has not been declared
   using ::max_align_t;

This is a known gmp problem, documented in PR56019 and in
    https://gcc.gnu.org/gcc-4.9/porting_to.html
near the bottom where it discusses cstddef.h changes.  Except the
cstddef.h changes didn't matter until C++11 or later became the default.

This is apparently fixed in gmp 6.0.0.  I haven't had a chance to try
that yet.  The prereqs section on doc/install.texi says we need gmp
4.3.2 or later, so it appears that this needs to change too.

This is maybe only a problem if you have the isl libraries installed.

Jim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]