libstdc++: Fix visitor return type diagnostics [PR97449]
authorVille Voutilainen <ville.voutilainen@gmail.com>
Sat, 17 Oct 2020 19:08:50 +0000 (22:08 +0300)
committerVille Voutilainen <ville.voutilainen@gmail.com>
Sat, 17 Oct 2020 20:10:40 +0000 (23:10 +0300)
commit1f65bf2aa65609c0cd88af1b83191d37d6729f46
tree0208e7f53eb1b3ff2b0fde31d952adc894132ff4
parentf476a9fe912132abf06c2832a1bb9abe6c1a1bb1
libstdc++: Fix visitor return type diagnostics [PR97449]

libstdc++-v3/ChangeLog:

PR libstdc++/97449
* include/std/variant
(__gen_vtable_impl<>::_S_apply_single_alt):
Diagnose visitor return type mismatches here..
(__gen_vtable_impl</*base case*/>::_S_apply):
..not here.
libstdc++-v3/include/std/variant