libstdc++: Use variable template to fix -fconcepts-ts error [PR113366]
commit6c703b4eb68cbc32de1d62e5b573cb1b9857af29
authorJonathan Wakely <jwakely@redhat.com>
Sat, 13 Jan 2024 12:13:33 +0000 (13 12:13 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 15 Jan 2024 16:59:27 +0000 (15 16:59 +0000)
treebe0be0b035e765f6463dc2db2a725d55394031c8
parent4f141b051ef4476da2cd39c622b2eae73c696d88
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.
libstdc++-v3/include/std/format