public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 13.1 compile error when using CXXFLAGS=-std=c++20
@ 2023-04-27  9:09 Helmut Zeisel
  2023-04-27  9:22 ` Jakub Jelinek
  0 siblings, 1 reply; 6+ messages in thread
From: Helmut Zeisel @ 2023-04-27  9:09 UTC (permalink / raw)
  To: gcc

I compiled GCC 13.1.0 with GCC 12 and had the environment variable CXXFLAGS set to -std=c++20
This gives the error (both linux and cygin)

gcc-13.1.0/libstdc++-v3/src/c++98/bitmap_allocator.cc:51:23: error: ISO C++17 does not allow dynamic exception specifications
   51 |   _M_get(size_t __sz) throw(std::bad_alloc)

After

   unset CXXFLAGS

compilation works

Helmut

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-08  8:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-27  9:09 GCC 13.1 compile error when using CXXFLAGS=-std=c++20 Helmut Zeisel
2023-04-27  9:22 ` Jakub Jelinek
2023-04-27  9:35   ` Aw: " Helmut Zeisel
2023-04-27  9:40     ` Jakub Jelinek
2023-05-08  8:38       ` NightStrike
2023-05-08  8:51         ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).