[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 5 14:37:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948
--- Comment #10 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Fri Feb 5 14:36:44 2016
New Revision: 233176
URL: https://gcc.gnu.org/viewcvs?rev=233176&root=gcc&view=rev
Log:
Fix PR c++/68948 (wrong code generation due to invalid constructor call)
gcc/cp/ChangeLog:
PR c++/68948
* pt.c (tsubst_baselink): Diagnose an invalid constructor call
if lookup_fnfields returns NULL_TREE and the name being looked
up has the form A::A.
gcc/testsuite/ChangeLog:
PR c++/68948
* g++.dg/template/pr68948.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/pr68948.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list