This simple program does not compile in my local setup

Revision en6, by aryanc403, 2023-07-15 11:00:31
#pragma GCC target ("sse4")
#include <bits/stdc++.h>

int main(void) {
    std::set<int> s;
    return 0;
}

It fails to compile with error
In file included from /usr/include/c++/13.1.1/string:43, from /usr/include/c++/13.1.1/bitset:52, from /usr/include/c++/13.1.1/x86_64-pc-linux-gnu/bits/stdc++.h:52, from a.cpp:2: /usr/include/c++/13.1.1/bits/allocator.h: In destructor ‘std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::_Rb_tree_impl<std::less<int>, true>::~_Rb_tree_impl()’: /usr/include/c++/13.1.1/bits/allocator.h:184:7: error: inlining failed in call to ‘always_inline’ ‘std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = std::_Rb_tree_node<int>]’: target specific option mismatch 184 | ~allocator() _GLIBCXX_NOTHROW { } | ^ In file included from /usr/include/c++/13.1.1/map:62, from /usr/include/c++/13.1.1/x86_64-pc-linux-gnu/bits/stdc++.h:152: /usr/include/c++/13.1.1/bits/stl_tree.h:662:16: note: called from here 662 | struct _Rb_tree_impl

Compilation command — time g++ -static -DONLINE_JUDGE -O2 -std=c++20 $$${file} -o $$${file}.exe

G++/GCC version g++ (GCC) 13.1.1 20230429 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

When where and how to report it?

Tags never, update, arch

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en8 English aryanc403 2023-07-15 16:39:09 3
en7 English aryanc403 2023-07-15 16:38:44 77
en6 English aryanc403 2023-07-15 11:00:31 9 Tiny change: 'NE_JUDGE -DLOCAL5 -O2 -std=' -> 'NE_JUDGE -O2 -std='
en5 English aryanc403 2023-07-15 10:59:58 384
en4 English aryanc403 2023-07-15 10:41:01 0 (published)
en3 English aryanc403 2023-07-15 10:36:19 0 (saved to drafts)
en2 English aryanc403 2023-07-15 10:30:47 166
en1 English aryanc403 2023-07-15 10:29:20 1244 Initial revision (published)