]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR c++/68948 (wrong code generation due to invalid constructor call)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 5 Feb 2016 14:36:44 +0000 (14:36 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 5 Feb 2016 14:36:44 +0000 (14:36 +0000)
commit76c85fbbe7bb698e56b757e5997069b569517150
tree0181155bb6cece13a7eb6076ea743a1511e1350b
parentdfcfe1846a2ee22f317ad955b87fd1a7a5ca8fe1
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.

From-SVN: r233176
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr68948.C [new file with mode: 0644]