aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-03-18 13:10:01 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-03-18 15:40:03 +0000
commit7a42b1fa1a090ead96cc0f94a8060a9650c810d5 (patch)
treea577fe38755c4497eb089140b70bf3c54fcd4c28 /gcc/fortran/trans-openmp.cc
parentc5086228cd79f7baa7d8d3c4bba04a69ab756253 (diff)
downloadgcc-7a42b1fa1a090ead96cc0f94a8060a9650c810d5.zip
gcc-7a42b1fa1a090ead96cc0f94a8060a9650c810d5.tar.gz
gcc-7a42b1fa1a090ead96cc0f94a8060a9650c810d5.tar.bz2
libstdc++: Simplify constraints for std::any construction [PR104242]
Partially revert r12-4190-g6da36b7d0e43b6f9281c65c19a025d4888a25b2d because using __and_<..., is_copy_constructible<T>> when T is incomplete results in an error about deriving from is_copy_constructible<T> when that is incomplete. I don't know how to fix that, so this simply restores the previous constraint which worked in this case (even though I think it's technically undefined to use is_copy_constructible<T> with incomplete T). This doesn't restore exactly what we had before, but uses the is_copy_constructible_v and __is_in_place_type_v variable templates instead of the ::value member. libstdc++-v3/ChangeLog: PR libstdc++/104242 * include/std/any (any(T&&)): Revert change to constraints. * testsuite/20_util/any/cons/104242.cc: New test.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions