[Bug c++/68948] G++ voluntarily removes a function call with terrible side effects
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 19 17:05:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948
--- Comment #14 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Fri Feb 19 17:04:29 2016
New Revision: 233563
URL: https://gcc.gnu.org/viewcvs?rev=233563&root=gcc&view=rev
Log:
Adjust fix PR c++/68948
gcc/cp/ChangeLog:
PR c++/68948
* pt.c (tsubst_baselink): Don't diagnose an invalid constructor
call here.
* semantics.c (finish_call_expr): Don't assume a constructor
call is dependent if only the "this" pointer is dependent. When
building a constructor call, always use a dummy object.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
More information about the Gcc-bugs
mailing list