]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use variable template to fix -fconcepts-ts error [PR113366]
authorJonathan Wakely <jwakely@redhat.com>
Sat, 13 Jan 2024 12:13:33 +0000 (12:13 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 18 Jan 2024 16:25:38 +0000 (16:25 +0000)
commit35000c65470792aed3a3c23a3b3fc45db4bec2c4
tree314c418b334b698dee52714a2bbe4a5fda7a72ec
parentc9262b1d8d74512dfb63131f933cd64505b5497e
libstdc++: Use variable template to fix -fconcepts-ts error [PR113366]

There's an error for -fconcepts-ts due to using a concept where a bool
NTTP is required, which is fixed by using the vraiable template that
already exists in the class scope.

This doesn't fix the problem with -fconcepts-ts as changes to the
placement of attributes is also needed.

libstdc++-v3/ChangeLog:

PR testsuite/113366
* include/std/format (basic_format_arg): Use __formattable
variable template instead of __format::__formattable_with
concept.

(cherry picked from commit 6c703b4eb68cbc32de1d62e5b573cb1b9857af29)
libstdc++-v3/include/std/format