Issue 139949
Summary Including <chrono> fails with std=c++23 and libstdc++
Labels new issue
Assignees
Reporter chrchr-github
    ~~~
In file included from <source>:1:
In file included from /opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16.0.0/../../../../include/c++/16.0.0/chrono:51:
In file included from /opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16.0.0/../../../../include/c++/16.0.0/sstream:42:
In file included from /opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16.0.0/../../../../include/c++/16.0.0/istream:43:
In file included from /opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16.0.0/../../../../include/c++/16.0.0/ostream:44:
/opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16.0.0/../../../../include/c++/16.0.0/format:5396:7: error: variable template 'format_kind' declared with deduced type 'const auto' cannot appear in its own initializer
 5396 |       format_kind<_Rg> // you can specialize this for non-const input ranges
      |       ^
1 error generated.
Compiler returned: 1
~~~
https://godbolt.org/z/aP5PaGzzP
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to