[Boost.GIL] GCC 12.1.1 fails to compile boost.gil examples with -std=c++20

B Aleck via Boost-users <[email protected]>
Newsgroups gmane.comp.lib.boost.user
Message-ID <SYBP282MB2575FE99B5873BF355553C948C6D9@SYBP282MB2575.AUSP282.PROD.OUTLOOK.COM>
Source: https://www.boost.org/doc/libs/1_80_0/libs/gil/doc/html/_downloads/resize.cpp
Compile with: g++ -std=c++20 -c
gcc version: 12.1.1

The compile successes with -std=c++14 and -std=c++17, only fails with -std=c++20
Same error does not occur on clang

Is this a boost bug or gcc bug?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.