]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
Fix PR c++/68948 (wrong code generation due to invalid constructor call)
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2016 14:36:44 +0000 (14:36 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2016 14:36:44 +0000 (14:36 +0000)
commit235d8723e67bbb9855fca70d23f223def43e9dc3
tree0181155bb6cece13a7eb6076ea743a1511e1350b
parent7b1951f47d0c9a9cc5f0c43781375294e7cae205
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233176 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr68948.C [new file with mode: 0644]