[Bug libstdc++/79195] make_array should not ask for common_type when the type is explicitly specified
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 1 12:13:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79195
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Feb 1 12:12:34 2017
New Revision: 245087
URL: https://gcc.gnu.org/viewcvs?rev=245087&root=gcc&view=rev
Log:
PR libstdc++/79195 fix make_array type deduction
PR libstdc++/79195
* include/experimental/array (make_array): Use common_type<_Dest>
and delay instantiation of common_type until after conditional_t.
Qualify std::forward call.
(to_array): Add exception specification.
* testsuite/experimental/array/make_array.cc: Test argument types
without a common type.
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/experimental/array
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/array/make_array.cc
More information about the Gcc-bugs
mailing list