Go to file
Jason Merrill bddee796d0 PR c++/88123 - lambda and using-directive.
For named function calls in a template, the result of unqualified lookup is
safed in CALL_EXPR_FN.  But for operator expressions, no unqualified lookup
is performed until we know whether the operands have class type.  So when we
see in a lambda a use of an operator that might be overloaded, we need to do
that lookup then and save it away somewhere.  One possibility would be in
the expression, but we can't really add extra conditional operands to
standard tree codes.  I mostly implemented another approach using a new
WITH_LOOKUP_EXPR code, but teaching everywhere how to handle a new tree code
is always complicated.  Then it occurred to me that we could associate the
lookups with the function, which is both simpler and smaller.  So this patch
stores any operator bindings needed by a lambda function in an internal
attribute on the lambda call operator.

	* name-lookup.c (op_unqualified_lookup)
	(maybe_save_operator_binding, discard_operator_bindings)
	(push_operator_bindings): New.
	* typeck.c (build_x_binary_op, build_x_unary_op): Call
	maybe_save_operator_binding.
	* decl.c (start_preparsed_function): Call push_operator_bindings.
	* tree.c (cp_free_lang_data): Call discard_operator_bindings.

From-SVN: r269477
2019-03-07 21:54:41 -05:00
config
contrib Ignore a param in check-params-in-docs.py 2019-03-06 10:00:37 +00:00
fixincludes
gcc PR c++/88123 - lambda and using-directive. 2019-03-07 21:54:41 -05:00
gnattools
gotools re PR go/89406 (Go testing leaves many temporary directories in /tmp around) 2019-03-01 05:25:36 +00:00
include
INSTALL
intl
libada
libatomic
libbacktrace [libbacktrace] Fix btest-lto for older gcc 2019-02-26 16:09:40 +00:00
libcc1
libcpp * sv.po: Update. 2019-03-08 00:06:15 +00:00
libdecnumber
libffi
libgcc
libgfortran re PR libfortran/89593 (warning "passing argument 3 of ‘_gfortran_caf_{get,send}_by_ref’ from incompatible pointer type" when building libgfortran) 2019-03-05 23:41:39 +01:00
libgo mksysinfo: actually use modified Statfs_t value 2019-03-06 14:19:56 +00:00
libgomp [libgomp] In OpenACC testing, by default only build for the offload target that we're actually going to test 2019-02-22 11:51:35 +01:00
libhsail-rt
libiberty
libitm
libobjc encoding.c (DFmode): #undef before #define. 2019-03-06 16:49:13 +01:00
liboffloadmic
libphobos PR d/89177 - Fix unaligned access in std.digest.murmurhash 2019-03-02 19:14:54 +00:00
libquadmath
libsanitizer Charry pick libsanitizer r355488 (PR sanitizer/88684). 2019-03-06 11:46:15 +00:00
libssp
libstdc++-v3 RISC-V: Add libstdc++ check-abi support. 2019-03-07 15:24:59 -08:00
libvtv
lto-plugin Remove a legacy lto-symtab.c file. 2019-02-26 17:27:36 +00:00
maintainer-scripts Improve error message for bad arguments to script 2019-02-23 21:19:04 +00:00
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ar-lib
ChangeLog Replaced spaces with tab in Changelog, committed as obvious 2019-02-27 10:38:25 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS Add myself to write after approval. 2019-02-27 10:23:54 +00:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
symlink-tree
test-driver
ylwrap

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.