Go to file
Jason Merrill 9aeadd8c31 c++: Improve error recovery with constexpr [PR92193]
The compiler tries to limit error cascades in limit_bad_template_recursion
by avoiding triggering a new instantiation from one that has caused errors.
We were exempting constexpr functions from this because they can be needed
for constant evaluation, but as more and more functions get marked
constexpr, this becomes an over-broad category.  So as suggested on IRC,
this patch only exempts functions that are needed for mandatory constant
evaluation.

As noted in the comment, this flag doesn't particularly need to use a bit in
the FUNCTION_DECL, but there were still some free.

	PR c++/92193

gcc/cp/ChangeLog:

	* cp-tree.h (FNDECL_MANIFESTLY_CONST_EVALUATED): New.
	* constexpr.c (cxx_eval_call_expression): Set it.
	* pt.c (neglectable_inst_p): Check it.

gcc/testsuite/ChangeLog:

	* g++.dg/diagnostic/static_assert4.C: New test.
2021-08-31 12:17:19 -04:00
INSTALL
c++tools
config Daily bump. 2021-08-19 00:16:42 +00:00
contrib Daily bump. 2021-08-31 00:16:50 +00:00
fixincludes Daily bump. 2021-08-31 00:16:50 +00:00
gcc c++: Improve error recovery with constexpr [PR92193] 2021-08-31 12:17:19 -04:00
gnattools
gotools
include Daily bump. 2021-08-24 00:17:00 +00:00
intl
libada
libatomic
libbacktrace Daily bump. 2021-08-14 00:16:29 +00:00
libcc1 Daily bump. 2021-08-18 00:16:48 +00:00
libcody
libcpp Daily bump. 2021-08-26 00:17:03 +00:00
libdecnumber
libffi Daily bump. 2021-08-31 00:16:50 +00:00
libgcc libgcc: Add missing runtime exception notices 2021-08-31 10:56:34 +01:00
libgfortran Daily bump. 2021-08-28 00:16:42 +00:00
libgo libgo: various fixes for Solaris support 2021-08-14 17:34:52 -07:00
libgomp Daily bump. 2021-08-24 00:17:00 +00:00
libiberty Daily bump. 2021-08-30 00:16:44 +00:00
libitm
libobjc
liboffloadmic
libphobos Daily bump. 2021-08-31 00:16:50 +00:00
libquadmath
libsanitizer Daily bump. 2021-08-12 00:16:28 +00:00
libssp
libstdc++-v3 libstdc++: Fix 17_intro/names.cc failures on Solaris 2021-08-31 14:17:53 +01: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. 2021-08-22 00:16:40 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS MAINTAINERS: Add myself for write after approval 2021-08-21 21:41:31 +02:00
Makefile.def gdb: Add a dependency between gdb and libbacktrace 2021-08-31 10:00:22 +01:00
Makefile.in gdb: Add a dependency between gdb and libbacktrace 2021-08-31 10:00:22 +01:00
Makefile.tpl configure: Allow host fragments to react to --enable-host-shared. 2021-08-18 19:46:32 +01:00
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.