Go to file
Jonathan Wakely d4a760d8c4 PR c++/80544 strip cv-quals from cast results
gcc/cp:

	PR c++/80544
	* tree.c (reshape_init): Use unqualified type for direct enum init.
	* typeck.c (maybe_warn_about_cast_ignoring_quals): New.
	(build_static_cast_1, build_reinterpret_cast_1): Strip cv-quals from
	non-class destination types.
	(build_const_cast_1): Strip cv-quals from destination types.
	(build_static_cast, build_reinterpret_cast, build_const_cast)
	(cp_build_c_cast): Add calls to maybe_warn_about_cast_ignoring_quals.

gcc/testsuite:

	PR c++/80544
	* g++.dg/expr/cast11.C: New test.

From-SVN: r248432
2017-05-24 23:16:59 +01:00
config
contrib check_GNU_style.py: print usage if no file specified 2017-05-24 08:49:56 +00:00
fixincludes
gcc PR c++/80544 strip cv-quals from cast results 2017-05-24 23:16:59 +01:00
gnattools
gotools re PR go/80814 (commit aa443150c83535fedccb3dee80daa7e01fafd92d causes a build error.) 2017-05-18 22:44:12 +00:00
include environ.h: Add #ifndef guard. 2017-05-19 21:22:07 -04:00
INSTALL
intl
libada configure.ac: Add check for sys/capability.h header. 2017-05-22 07:17:48 +00:00
libatomic
libbacktrace dwarf.c (free_line_header): Don't free dirs if dirs_count == 0. 2017-05-19 16:07:24 +00:00
libcc1 cp-tree.h (OVL_P): New. 2017-05-23 10:58:57 +00:00
libcilkrts
libcpp
libdecnumber
libffi
libgcc unwind-arm.h: Make _Unwind_GetIP... 2017-05-17 22:54:39 +02:00
libgfortran [multiple changes] 2017-05-19 15:48:35 +00:00
libgo libgo: add "vendor" to pkgpath for vendored standard packages 2017-05-17 20:16:13 +00:00
libgomp OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all 2017-05-24 15:25:01 +02:00
libhsail-rt
libiberty waitpid.c (wait): Define as a macro that calls _cwait, so that this function works on MinGW. 2017-05-24 17:35:59 -04:00
libitm
libmpx
libobjc
liboffloadmic
libquadmath
libsanitizer
libssp
libstdc++-v3 Use CHAR_BIT instead of assuming 8 bits 2017-05-24 20:27:28 +01:00
libvtv
lto-plugin
maintainer-scripts gcc_release (XZ): Default to xz --best. 2017-05-23 23:14:10 +00:00
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ChangeLog Split off powerpcspe from rs6000 port 2017-05-24 21:35:49 +02:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure Enable by default -Werror just for bootstrap-debug.mk and default build. 2017-05-19 13:31:01 +00:00
configure.ac Enable by default -Werror just for bootstrap-debug.mk and default build. 2017-05-19 13:31:01 +00:00
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 MAINTAINERS: Add self to Write After Approval 2017-05-18 09:38:47 +00:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
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.