aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/frontend-passes.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-02-24 13:03:49 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-02-24 14:23:36 +0000
commit8520132bc362d5f915eb1cb20038492e37b3cf88 (patch)
tree1ba38f8caa87399719bb76f5c4a48e85f780e17a /gcc/fortran/frontend-passes.cc
parent97111dccf97d8b4dbf7c1ef11c72827295a72466 (diff)
downloadgcc-8520132bc362d5f915eb1cb20038492e37b3cf88.zip
gcc-8520132bc362d5f915eb1cb20038492e37b3cf88.tar.gz
gcc-8520132bc362d5f915eb1cb20038492e37b3cf88.tar.bz2
libstdc++: Constrain net::executor constructors
The TS says the arguments to these constructors shall meet the Executor requirements, so it's undefined if they don't. Constraining on a subset of those requirements won't affect valid cases, but prevents the majority of invalid cases from trying to instantiate the constructor. This prevents the non-explicit executor(Executor) constructor being a candidate anywhere that a net::executor could be constructed e.g. comparing ip::tcp::v4() == ip::udp::v4() would try to convert both operands to executor using that constructor, then compare then using operator==(const executor&, const executor&). libstdc++-v3/ChangeLog: * include/experimental/executor (executor): Constrain template constructors.
Diffstat (limited to 'gcc/fortran/frontend-passes.cc')
0 files changed, 0 insertions, 0 deletions