[patch #9761] autoconf-archive's ax_cxx_compile_stdcxx.m4 fails when testing `clang++ -std=c++11 -Werror -Wnon-virtual-dtor`
Garrett Cooper <[email protected]> Thu, 28 Feb 2019 16:34:11 -0500 (EST)
| Newsgroups | gmane.comp.sysutils.autoconf.archive-maintainers |
|---|---|
| Message-ID | <[email protected]> |
URL:
<https://savannah.gnu.org/patch/?9761>
Summary: autoconf-archive's ax_cxx_compile_stdcxx.m4 fails
when testing `clang++ -std=c++11 -Werror -Wnon-virtual-dtor`
Project: GNU Autoconf Archive
Submitted by: yaneurabeya
Submitted on: Thu 28 Feb 2019 09:34:09 PM UTC
Priority: 6
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The test for C++11 fails to compile with `-Werror -Wnon-virtual-dtor` on clang
7.0.1 as the Base and Derived classes have a concrete destructor, while having
virtual methods.
The attached patch adds virtual destructors in order to unbreak testing for
`-std=c++11` with the before mentioned flags.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 28 Feb 2019 09:34:09 PM UTC Name:
0001-Unbreak-testing-for-std-c-11-with-clang-with-Werror-.patch Size: 2KiB
By: yaneurabeya
<http://savannah.gnu.org/patch/download.php?file_id=46375>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?9761>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/