autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #9150] AX_CXX_COMPILE_STDCXX: Add checks for C++17


From: anonymous
Subject: [patch #9150] AX_CXX_COMPILE_STDCXX: Add checks for C++17
Date: Fri, 21 Oct 2016 19:05:00 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

URL:
  <http://savannah.gnu.org/patch/?9150>

                 Summary: AX_CXX_COMPILE_STDCXX: Add checks for C++17
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Fri 21 Oct 2016 07:04:57 PM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Attaching two patches here. First one checks for the C++17 compiler. Currently
there no compilers that implement this specification, as the specification
wasn't yet released, so this check wouldn't normally succeed at the moment.

My approach here was to ifdef out some check if they are not supported by a
compiler. The only compilers I tested is g++ 7 from 2016.10.20 and clang++ 4.0
from 2016.10.21. The ifdefs would be removed as the compilers implement more
and more C++17 features.

The second patch adds alternatives for the -std switches. So C++11 features
could be checked with -std=c++11 or -std=c++0x. Same goes for 14 (with
alternative of 1y) and 17 (with alternative of 1z).

Currently gcc allows both -std=c++17 and -std=c++1z, but clang accepts only
the latter.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 21 Oct 2016 07:04:57 PM UTC  Name:
0002-CXX_COMPILE_STDCXX-Check-alternative-flags-too.patch  Size: 3kB   By:
None

<http://savannah.gnu.org/patch/download.php?file_id=38788>
-------------------------------------------------------
Date: Fri 21 Oct 2016 07:04:57 PM UTC  Name:
0001-CXX_COMPILE_STDCXX-Add-checks-for-C-17-compiler.patch  Size: 10kB   By:
None

<http://savannah.gnu.org/patch/download.php?file_id=38787>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?9150>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]