Go to file
Patrick Palka 2c58f5cadf c++: overload sets and placeholder return type [PR64194]
In the testcase below, template argument deduction for the call
g(id<int>) goes wrong because the functions in the overload set id<int>
each have a yet-undeduced auto return type, and this undeduced return
type makes try_one_overload fail to match up any of the overloads with
g's parameter type, leading to g's template argument going undeduced and
to the overload set going unresolved.

This patch fixes this issue by performing return type deduction via
instantiation before doing try_one_overload, in a manner similar to what
resolve_address_of_overloaded_function does.

gcc/cp/ChangeLog:

	PR c++/64194
	* pt.c (resolve_overloaded_unification): If the function
	template specialization has a placeholder return type,
	then instantiate it before attempting unification.

gcc/testsuite/ChangeLog:

	PR c++/64194
	* g++.dg/cpp1y/auto-fn60.C: New test.
2020-07-29 22:06:44 -04:00
INSTALL
config
contrib Daily bump. 2020-07-30 00:16:24 +00:00
fixincludes
gcc c++: overload sets and placeholder return type [PR64194] 2020-07-29 22:06:44 -04:00
gnattools
gotools
include Daily bump. 2020-07-10 00:16:28 +00:00
intl
libada
libatomic Daily bump. 2020-07-15 00:16:35 +00:00
libbacktrace
libcc1
libcpp Daily bump. 2020-07-30 00:16:24 +00:00
libdecnumber
libffi
libgcc Daily bump. 2020-07-25 00:16:22 +00:00
libgfortran Daily bump. 2020-07-27 00:16:20 +00:00
libgo compiler,runtime: pass only ptr and len to some runtime calls 2020-07-27 17:05:17 -07:00
libgomp Daily bump. 2020-07-28 00:16:25 +00:00
libhsail-rt
libiberty Daily bump. 2020-07-15 00:16:35 +00:00
libitm Daily bump. 2020-07-25 00:16:22 +00:00
libobjc
liboffloadmic
libphobos
libquadmath
libsanitizer Daily bump. 2020-07-17 00:16:27 +00:00
libssp
libstdc++-v3 Daily bump. 2020-07-30 00:16:24 +00:00
libvtv
lto-plugin
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Daily bump. 2020-07-23 00:16:28 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS MAINTAINERS: Add myself for write after approval 2020-07-22 10:13:00 +01:00
Makefile.def
Makefile.in
Makefile.tpl
README
ar-lib
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
symlink-tree
test-driver
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.