[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong |
Date: |
Mon, 19 Feb 2024 12:19:24 -0500 (EST) |
Follow-up Comment #4, bug#65327 (group octave):
> First, if multiple "-std=..." options are present, what does GCC > do? What
would clang++ or any other compiler do?
I think the last one (on the right) overwrites the previous ones.
So for some reason "g++ -std=gnu++20" fails the C++11 test:
configure:11200: checking for g++ -std=gnu++20 option to enable C++11
features
configure:11436: g++ -std=gnu++20 -c -Wall -ggdb3 -O2 -march=native
-mtune=native -mavx -mavx2 -flto=auto conftest.cpp >&5
conftest.cpp: In function 'int main()':
conftest.cpp:173:8: warning: unused variable 'a1' [-Wunused-variable]
173 | auto a1 = 6538;
| ^~
conftest.cpp:175:8: warning: unused variable 'a3' [-Wunused-variable]
175 | auto a3 = "String literal";
| ^~
conftest.cpp:177:16: warning: unused variable 'a4' [-Wunused-variable]
177 | decltype(a2) a4 = 34895.034;
| ^~
conftest.cpp:181:9: warning: unused variable 'sa' [-Wunused-variable]
181 | short sa[cxx11test::get_val()] = { 0 };
| ^~
conftest.cpp:185:23: warning: unused variable 'il' [-Wunused-variable]
185 | cxx11test::testinit il = { 4323, 435234.23544 };
| ^~
conftest.cpp:211:8: warning: unused variable 'match' [-Wunused-variable]
211 | bool match = std::regex_search(testmatch, filename_regex);
| ^~~~~
conftest.cpp:215:35: warning: unused variable 'size' [-Wunused-variable]
215 | cxx11test::int_array::size_type size = array.size();
| ^~~~
conftest.cpp:220:25: warning: empty parentheses were disambiguated as a
function declaration [-Wvexing-parse]
220 | cxx11test::delegate d2();
| ^~
conftest.cpp:220:25: note: remove parentheses to default-initialize a
variable
220 | cxx11test::delegate d2();
| ^~
| --
conftest.cpp:220:25: note: or replace parentheses with braces to
value-initialize a variable
conftest.cpp:229:9: warning: unused variable 'c' [-Wunused-variable]
229 | char *c = nullptr;
| ^
conftest.cpp:237:22: error: invalid conversion from 'const char8_t*' to 'const
char*' [-fpermissive]
237 | char const *utf8 = u8"UTF-8 string \u2500";
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| const char8_t*
conftest.cpp:237:15: warning: unused variable 'utf8' [-Wunused-variable]
237 | char const *utf8 = u8"UTF-8 string \u2500";
| ^~~~
conftest.cpp:238:19: warning: unused variable 'utf16' [-Wunused-variable]
238 | char16_t const *utf16 = u"UTF-8 string \u2500";
| ^~~~~
conftest.cpp:239:19: warning: unused variable 'utf32' [-Wunused-variable]
239 | char32_t const *utf32 = U"UTF-32 string \u2500";
| ^~~~~
configure:11436: $? = 1
configure: failed program was:
So it adds "-std=c++11" which later would require "-std=c++17"
because of the pmr.
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65327>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong, Dmitri A. Sergatskov, 2024/02/17
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong, Markus Mützel, 2024/02/19
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong, Dmitri A. Sergatskov, 2024/02/19
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong, John W. Eaton, 2024/02/19
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong,
Dmitri A. Sergatskov <=
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong, Markus Mützel, 2024/02/19
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong, Dmitri A. Sergatskov, 2024/02/19
- [Octave-bug-tracker] [bug #65327] octave 10 stores sets CXX wrong, Markus Mützel, 2024/02/19