patchGNU Autoconf Archive - Patches: patch #9150, AX_CXX_COMPILE_STDCXX: Add checks...

 
 

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

Submitter:  None
Submitted:  Fri 21 Oct 2016 07:04:57 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 07 Dec 2016 02:57:39 PM UTC, comment #3: 

The latest patches I attached here are in master, so I'm fine with closing this ticket. Thanks!

Krzesimir Nowak <krnowak>
Tue 06 Dec 2016 11:46:42 AM UTC, comment #2: 

I believe those patches are now obsolete, i.e. have been applied already in another ticket?

Peter Simons <simons>
Group administrator
Sat 19 Nov 2016 03:51:20 PM UTC, comment #1: 

Updated the patches - I wrote the checks for exception specification being a part of a type system. Also checked that today's GCC passes all those checks. Will have to check clang++. I'm not sure what's the workflow with obsoleting the older patches here.

I wrote all this as a comment for the new patches, there goes my familiarity with Savannah UI. :)

Krzesimir Nowak <krnowak>
Fri 21 Oct 2016 07:04:57 PM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #39022:  0001-CXX_COMPILE_STDCXX-Add-checks-for-C-17-compiler.patch added by krnowak (10KiB - text/x-patch - Updated the patches - I wrote the checks for exception specification being a part of a type system. Also checked that today's GCC passes all those checks. Will have to check clang++. I'm not sure what's the workflow with obsoleting the older patches here.)
file #39023:  0002-CXX_COMPILE_STDCXX-Check-alternative-flags-too.patch added by krnowak (3KiB - text/x-patch - Updated the patches - I wrote the checks for exception specification being a part of a type system. Also checked that today's GCC passes all those checks. Will have to check clang++. I'm not sure what's the workflow with obsoleting the older patches here.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by krnowak (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-07 simons Open/ClosedOpen Closed
    2016-12-06 simons StatusNone Done
        Assigned toNone simons
    2016-12-06 simons Attached File#38787 Removed
    2016-12-06 simons Attached File#38788 Removed
    2016-11-19 krnowak Attached File- Added 0001-CXX_COMPILE_STDCXX-Add-checks-for-C-17-compiler.patch, #39022
        Attached File- Added 0002-CXX_COMPILE_STDCXX-Check-alternative-flags-too.patch, #39023
    2016-10-21 None Attached File- Added 0001-CXX_COMPILE_STDCXX-Add-checks-for-C-17-compiler.patch, #38787
        Attached File- Added 0002-CXX_COMPILE_STDCXX-Check-alternative-flags-too.patch, #38788

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code